In my opinion, this is true, but I think that if you just gain fat mass and do not convert it into muscles, then it is even more harmful. That's why I try to do exercises in moderation just to keep the body in good shape and not to become a bodybuilder.