Anything is possible, but it’s a matter of effort and money. Some swaps are easier and cheaper than others. You have to decide based on your wallet and skill set. Easiest swap is another 2.3, a turbo is possible without get too crazy into things most likely. A 4.0 SOHC would be a relatively easy swap too.
I’m in the process of a 5.0 swap in mine. Purposely picked a Ranger with an eye towards the swap. Pulled the drivetrain out of a donor Explorer. Still ran into various complications. Theoretically the swap can’t get much easier than what I’m doing, but anytime you step away from factory, there can be issues. Some of mine are self-inflicted and some are the result of working on old iron in the rust belt. Just the way it goes. Not my first time down this path and each one presents it’s own problems. I did a 5.0 swap for my dad about 10 years ago. That one went rather well. Same deal as mine, both the truck and donor were carefully selected.
Did a 4.0 in my 89 Bronco II and aside from that truck having a bad habit of eating motors, it wasn’t a terrible swap and only had a little of wiring to deal with. Took a stab years ago at a 4.0 into an 88 Bronco II and that was a wiring nightmare, eventually concluded that unless I wanted to change dash harnesses or do a ton of splicing and tracing, I’d be better off just tweaking the original motor. I can do wiring, I understand it and know how to work on electrical stuff and all, but it was more of a headache than I really wanted to get into. The original motor was a 2.9 and after a bit of research I concluded that I could get everything I wanted by tweaking the motor. That and tweaking the transmission. My choptop needed the extra oomph from the 4.0 to turn the 35’s and as luck would have it that one year difference in models made the wiring considerably easier. The 88 I never planned to really lift or do anything overly crazy to.