you can, but you will have to make a few changes to the ranger motor. you will want to reuse all of your sensors, fuel rail and injectors. i cant remember if you must change the lower intake. the upper i am very sure you need to change that. you also might have to change the drivers side exhaust manifold (the egr systems are different). and lastly, the metal motor mounts that bolt to the motor. they look the same at a fast glance, but its where the rubber mounts bolt to the metal are different (staggered differently). basically you will need to strip the donor motor down to a long block and transfer all your parts over from your 97 motor to it