I'm not going to tell you if what you did is right or wrong but if you felt like it was wrong, then don't it again. I don't see the reason why your parents should know that you once did this, unless you think that you'll eventually hurt your sister or yourself or something like that.
But if telling your parents would help you feel better and you think they won't react badly to knowing that, then you can go do as you please.