I looked upo that part number and am pretty confidfent in saying thast the answer is a definite NO.
Even if the connections are the same, the radio mounting is different. The Ranger radios from around 1995 through 2011 all mount in the same way, by clipping into the dash bezel. That F-150 Radio appears to bolt to the dash structure under neath the radio bezel. In addition the Ranger radios are approximately double din size on the face. Slightly larger, but not by much. From the looks of radio install kits for that year of F-150 the face of the radio is a fair bit larger and would not fit the opening in the ranger radio bezel.
What exactly are you hoping to gain from a radio swap?
There were factory am/fm/cd radios for the Ranger that will slot right into your truck (aka plun-n-play). They could also be found in other Fords into the early 2000s at least, like the F-250 through 2003. In fact, being a 2011, I'm surprised that your truck doesn't have one already. That said, if going to the effort to swap radios, I'd look to an aftermarket upgrade with more features.