On a 2001 Pontiac Grand Am SE would the TRAC OFF light cause it to stall out and not restart and act like it is out of gas?

Nothing to do with the "TRAC OFF" light, but my daughter has an 2001 Pontiac Grand Am SE, and her car did the same thing and what we found out was that the fuel pump, that was located in the gas tank, was bad. Bought another one and installed it and it works fine now.