No, the problem is consuming more calories than you burn, gaining weight is simple, just eat more calories than you burn, do the opposite if you want to lose weight, where the calories come from (fat/carbs) isn't important when it comes to weight loss.