2002 chevy cavalier 2.2

Car will start for a second then die. Replaced the fuel filter and still dies. Replaced battery yesterday and then drove fine. But now won’t stay running even after fuel pump and fuel filter has been checked. Also my aftermarket radio turns itself on now since battery replaced, could aftermarket radio be shutting it down