That's very true, but if you have healthy hormone levels and so long as your body fat percentage is high, you will lose way more fat than muscle, even without exercise. In bariatric surgery patients, for example >70% of weight loss is fat on average, and for 2/3rds of patients in some study there is less than 15% loss in fat-free mass.
On the other hand, if you're a man, then going to a reasonable body fat percentage is likely to make it easier for you to gain muscle.
So, as long as you make sure to eat a lot of protein, unless you have a large caloric deficit, you can expect muscle loss to be minimal (studies show that for extended moderate caloric deficits, muscle protein synthesis doesn't really decrease)
So yes, but if you're overweight, it's still a very good change on the balance, and you'll be way more fit in the end even if you do lose a bit of muscle.
On the other hand, if you're a man, then going to a reasonable body fat percentage is likely to make it easier for you to gain muscle.
So, as long as you make sure to eat a lot of protein, unless you have a large caloric deficit, you can expect muscle loss to be minimal (studies show that for extended moderate caloric deficits, muscle protein synthesis doesn't really decrease)
So yes, but if you're overweight, it's still a very good change on the balance, and you'll be way more fit in the end even if you do lose a bit of muscle.