You are wise to ask such a question while there is still time for you to prepare your soul for the afterlife.
Immediately after you die, you face Jesus Christ in the “particular judgment”. This will take place in the exact spot where you die and after the judgment, you will face eternal reward (heaven) or eternal punishment (hell). If you are worthy of heaven but are still stained with your sins, then you will go to purgatory until you are fit for heaven. No one who goes to purgatory will ever go to hell. On the last day, the day of the general judgment, purgatory will be emptied and those souls will go straight to heaven.
You can read more about it here in the Baltimore Catechism: