No doubt, you can still invalidate your confession if you have zero desire to repent or amend your life, but given the state of the world today, I think most people who are going to confession have both of these intentions.
God will not deny His mercy to anyone who wants it.