Can you used a Ford Ranger 4.0 2003 engine in a 1999 Ford Ranger 4.0?

I believe you could....according to the Haynes Repair Maual for 1993-2005 Rangers, the SOHC 4.0L engine is a standard 4.0L engine found in Rangers and Explorers. actually , the 4.0 L SOHC wasn't used in the Ford Ranger until 2001 , before that Ford used the 4.0 L OHV engine