Exercise, particularly strength training, is crucial for building muscle mass as you gain weight. It helps create a balanced and healthy increase in body weight.