Is it possible that I need to replace the fuel injector instead of the fuel pump on 1998 GMC Yukon

My truck wont start the first time but it will eventually, when it does it wont stay running for more than maybe 3 minutes. then dies. If you gas it, it dies. Before this It ran out of gas and I put 20 bucks in then I went to drive home and it dies on me the more I pressed the gas. I put a new battery in it and It got home but now it wont stay started.

Asked by for the 1998 GMC Yukon