Yes the pump is in the fuel tank. If the lamp is operational now, the next time it doesn't fire, monitor it then. If it does not illuminate, then the ECU (Engine Control Unit - computer) is not recieving power, this is commonly from the EFI relay, in the underhood fuse box. The relay also contols the fuel pump operation via the computer. At this milage if the pump has not ever been replaced, it is a strong candidate for failure. If the check engine lamp is illuminating when the problem is occuring, the next step is to have a fuel pressure test done when it has failed again, however, due to it's intermitency of the problem, this can be difficult to do. In cases like these the mechanics really need to get out and test drive the vehicle under different conditions, than let is sit; with a fuel injection guage on the system at all times. When the problem occurs, it can be caught.
-Rip
Please click on "ACCEPT" if I was helpful-or if you still need assistance just reply, before leaving any feedback thanks