If you stop exercising but continue to diet, you can still lose weight, but you may experience a slower metabolism and a decrease in muscle mass. Exercise, especially strength training, helps maintain muscle mass and keeps your metabolism high, which can aid in weight loss and maintenance. Therefore, while dieting can contribute to weight loss, incorporating exercise can optimize your overall health and weight loss efforts.