suggests that
acknowledging one's wrongdoing is an initial step towards genuine remorse and making amends.
When you have realized your mistakes when you confess, so you are on the right path of repentance., the saying “Confession is the first step to repentance” is appropriate.