Yes, go here, bookmark this page:
https://therangerstation.com/tech_library/index.shtml
Click on Engine & fuel tech section
There are quite a few links for 4.0l swaps
The 2.8l and 2.9l use same block, as did the 4.0l OHV, they are all Ford Cologne V6 engines
Difference for 2.8l is that its a carburetor engine and the 2.9l and 4.0l are EFI so you do need to add a high pressure fuel pump and a Return fuel line, which the 2.9l would already have
1990-1994 4.0l OHV with computer and wiring will be easier swap than the 1995-2000 because of the older computer, EEC-IV 60 wire, in 1995 Rangers got the EEC-V 104 wire computers, still used today by Ford