Generally that's how I learned not to eat certain foods. The yummy stuff comes out, I indulge, I feel sick. Next time said yummy food comes out, the temptation passes.
Needless to say, I nolonger have any longing for choclate cake, ice cream sundaes, or peanut butter cookies. :P