You'll need to rob the Engine Control Unit and all the wiring, sensors, etc out of the donor too. There are some junkyards that will sell an engine and modified wiring and ECU for stand along operation - newer ECUs read things like speed, steering angle brake use etc when figuring how how much fuel the engine needs.
If I was going to go the the trouble of putting a late model electronic 4 cylinder in an A I would choose the 315 hp Ecoboost from a late Mustang. Now that would be fun.
Just checked. The Ranger is a Lima engine. Just backdate it with 70s Pinto intake, carb, distributor, etc.
The 1992 Ford Ranger's 4-cylinder engine family is the "Lima" engine family, specifically the 2.3L SOHC inline-four that was the base engine for that year. This engine family is known for its cast-iron block and cylinder head and was used in various Ford vehicles from the 1970s to the late 1990s.