The whole purpose of exercise is for energy expenditure and to stimulate muscle growth. You don't necessarily need to eat healthy foods either. You simply need to have a negative energy balance in order to lose weight. Meaning you are eating less calories than you burn. 2 ways to get there. One way is to reduce what you currently eat OR you can use exercise to simply burn more calories. Or you could do both for faster results