Consuming excess calories from any macronutrient, including carbohydrates, can contribute to weight gain. However, weight management is more about overall calorie balance and the quality of the diet, rather than solely blaming carbohydrates.