You are trying to replace the SOHC 4.0L with a OHV 4.0L?
This is what I call working backwards.
For the amount of work invovled (wiring, mounts, engine mods to make it fit, etc) you mine as well go with a better engine or replace your SOHC with another SOHC IMO.
Now with that said of course both engines were available for your truck, so yes it is possible, but dont expect to just unbolt one and bolt in the other, there are many changes to th etruck also required. Trans/exhaust/wiring is just the tip of the iceburg.