Not necessarily, but I would stick to a driveshaft that came in a ranger or explorer so you don't run into problems with the u-joint size. If you get one from a 98-up ranger it will have the tulip style flange at the t-case which wouldn't work without modification. If you go with a 93-97 ranger shaft then it will need shortened because it was meant to be used on a TTB suspension. 95-96 explorers had the double cardan style shaft that was meant to be used on the same suspension as a 98-up ranger uses. 97-01 explorers will also have the tulip style flange at the t-case.
95-96 explorer shafts will work without modification. Any other shaft will need custom work to work properly. If you don't mind having the shaft shortened then get a 93-97 ranger shaft, or a 91-94 explorer shaft. I would avoid the tulip style flanges all together.
2003 Ranger Regular cab 5-Speed 4x4
D30 SAS | KING Coilovers | Deaver f31s | 4.88s | Detroit TrueTrac | Eaton E-Locker | 35" MTZs | 1354m | RE Long Arms | Currie AntiRock