Car won't start

My car would start and run for a bit…but after it will just die…I had to get my car boostered…but then would die after again, I know it’s not the battery because I just bought a new one recently. Would it happen to be the alternator or something?

:wrong: and :search:

Oz