100% true. Unhealthy food has fat calories which cause weight gain. If the diet is a healthy one with no fat calories, you will not gain fat. Exercise is also key as it burns calories and reduces chances of various diseases that come with being overweight.