to eat candy or not?

Options
So, if I wanted to eat a candy bar, would it be okay if I did enough exercise to cancel out the calories? Or would this technique not work? and if I could get away with this, how often or how many times could I do it?

I'm thinking I could eat whatever I wanted as long as I burned enough calories to cancel the food out. Right?

THANX,
sue