Bolt up? Yes.
Survive long? Sorry, No.
the issue with any of the "Removeable bellhousing transmissions" that were factory equipment in Ranger Based Vehicles is that they all use a Ball bearing input bearing.
And because of the design inherent in inline transmissions the bevel angle of the gears creates a thrust load against the bearing, ball bearings are designed for handling Radial loads, axial loading places all the loads on the narrow flanges of tjhe inner and outer races and that allows gradually increasing end play in the transmission leading to eventual failure.
The principle strength of the later Mazda transmission (NOIN-removeable bellhousing)
is that it uses tapered roller bearings at either end of the transmission mainshaft and these bearing are actually about the same size as the differential pinion bearings in some rear axles.. they will tolerate enormous axial loads.. far more than any engine they can be readily bolted to are capable of generating....
The Gearing difference unique to the 4.0 version of the trans isn't about strength of the trans, it's about the 4.0 engine's short top end (that you'll never miss unless you drive it like an idiot) but there are circumstances, for example caccelerating up a steep hill while towing where you'll find that you cannot comfortably rev the engine high enough in 3rd gear to shift into 4th without pulling a 4.0 engine a touch too low in the power band
So the main difference between a 2.3/2.9/3.0 Mazda trans and a 4.0 Mazda trans
is NOT that 3.72:1 Vs 3.40:1 (4.0) 1st gear, but rather the 4.0 version's 1.31:1 3rd gear versus the 1.50:1 3rd.
It may not sound like a big deal, but it really makes 3rd a whole bunch more useful
AD