Sin can exist so long as you have an objective system of morals.
If you beleive that right or wrong is just a matter of opinion, then sin is a redundant concept.
Nearly all religions have objective morals, of course, while virtually everyone I know seems to think that right or wrong is just down to opinion, so sin seems to be a dying concept.
I like to think that morals can be objective, though.