The beautiful thing about this verse is that it doesn't put any qualifiers on the sin. There are no sins too big or too evil for Jesus to forgive. All we have to do is confess them to Him, and He'll forgive.
"If we say we have no sin, we deceive ourselves, and the truth is not in us. If we confess our sins, He is faithful and just to forgive us our sins and to cleanse us from all unrighteousness." (Verses 8 and 9)