Of course, it is better to exercise and diet at the same time. If you eat less, you don't have to think about it. You can't help eating. Never eat snacks. You can eat as little as possible at night, or you can eat an apple without eating.
In short, if you want to lose weight, you must eat less and exercise more, and the consumption must be greater than the intake, in order to achieve the effect of losing weight.