1992 Ford Ranger

hi i have a 1992 ford ranger 2.3l 2wd extended cab i was wondering will a transmission out of a 89 mazda pickup 4 cylinder bolt up right?