Good question, and one which illustrates one of the most glaring inconsistencies in Christian doctrine - one can, or can not, enter the kingdom of heaven by virtue of this or that act (good works, going to confession, profession of faith, etc.).
I do not mean to disparage anyone's religious beliefs, but I have a real problem with the notion of the "free pass", as Blake puts it. "Just say these magic words, and you're in!" That's an extremely seductive pitch, to be sure, but if taken at face value it absolves the individual of all personal responsibility. I choose to believe that how we live this life matters, in this life and beyond. To be fair, I know a number of thoughtful Christians who share that view, and who argue that an earnest profession of faith can not be made without at least a tacit acknowledgement of one's "sins".