C.S.
It's good to teach her that was wrong.
However, instead of telling her directly I like to walk my daughter through the issue until she comes to that conclusion herself. (Do you think it was fair to the other kids you got an extra cookie? How would you feel if someone lied to you? What do you think you should do next time...? Etc.)
She might be a little young to completely get it, but I believe helping them think through the issues will help them in the long run.
That's how I try to handle these types of issues.
:)