Only exercise can burn calories
People who think burning out calories at gym is an excuse to have you eat whatever they want it totally a myth. It is often noticed people who leave gym after a while pursuing it, tend to gain weight.
It is because sweating out at gym was just helping your burn the fat that was already present within your body and as you stop gymming the current fat adsorption rate becomes higher and leads to weight gain.