As said, no on the 4WD trans, but you don't need a new trans unless there is a problem with it
1989 2.9l 2WD Ranger should have an M5OD-R1 manual transmission, EXACTLY the same transmission used in all 4.0l Rangers 1990-2000
Info here:
https://therangerstation.com/tech_library/ManualTransmission.shtml
And 2.9l and 4.0l used the same engine Block, so same bolt pattern for transmission
So you should be good to go, used the 4.0l clutch
If you drop the transmission change the 3 rubber plugs, top rear of trans
M5OD-R1 uses ATF, yes automatic transmission fluid in a manual
2.8quarts bone dry, so about 2quarts on refill