Yes, as long as trans is from a 2.3l Lima engine they have a unique bolt pattern, 2.0l and 2.5l Lima will also work.
M50D-R1 would be best choice, it was used with 2.3l from 1988 on
You will also need to change the computer, current computer will "look for" automatic trans solenoids when it powers up, not finding them it will turn on the CEL(check engine light) and it will stay on.
Engine should run OK but may have random high and low idles.
While having the CEL on all the time might seem like a non-issue, it does prevent computer from warning you when there is a real issue, so best to get a manual trans computer and have a working CEL.
You also need the wiring harness and 4x4 control module plus dash board switches for 4x4 control.
Or if possible find a manual shift transfer case these are not common but can be worth looking for as the electric "shift on the fly" can be unreliable and frustrating, i.e. you don't know it doesn't work until you need 4WD and don't have it, lol.
And use manual lock/unlock hubs, period