Under which doctrine?
If you are Roman Catholic, if you have not committed a mortal sin, and. you have confessed, you first go to purgatory. Then move to heaven.
If you are say, a Southern Baptist, a protestant, if you have accepted Jesus as your personal savior and have accepted you are a sinner, you go to heaven.
You gotta be more specific in your little game of gotcha.