To be certain, you'll need to consult a repair manual specific to your Ranger's engine size. A Haynes or Chilton manual for your vehicle will have diagrams and detailed information on the EGR valve's location and removal. You can also usually find diagrams online through forums dedicated to Ford Rangers or automotive repair.
Before attempting any work: Always disconnect the negative battery terminal before working on any electrical components near the engine.