Is a Mazda M50D Manual the same transmission that is in my 1994 ford ranger 4.0 v-6 5 -speed manual?

The 5 speed manual in a 4x4 with the 4.0 V6 is the Mazda M50D, if your truck is a 4x2 I am unsure. There are at least a couple of different models of this transmission, so if you are looking for one at a salvage yard be very observant of what is in your truck compared to what you are looking at in the salvage yard. One from a F150 will not work. Look on your door post if it says trans code m yes it is an m50d r1