For that matter, you can believe there is no god (are no gods) and still believe that there is an afterlife... another plane of existance... or even multiple planes of existance... or even planes of existance into which you gain entry based on the residual "charge" of karmic energy you carry with you.
Carry a negative charge and you end up on the same plane with all the rest of the people who were evil on our current plane.
We have no idea what lies beyond... or not.