Exactly, and that's why we keep seeing studies that "show" exercise doesn't help you lose weight.  Well yeah, if you don't actually do any work at the gym and then reward yourself with a 500 calorie snack, you're not going to lose weight. If you go through a real workout and don't eat junk it can actually be pretty hard to NOT lose weight.