I would agree, since sugar is a simple carb, but not all carbohydrates are created equally. Eating more complex carbs (beans, whole grains) can give you sustained energy throughout the day, while certain fats (like olive oil) can be stored (as fat) on your body within minutes.
Science on the field of health is in general inaccurate and often contradicting. Saying that there is one "most important way" of losing weight is based on mankind knowing everything there is to know about health, which is not true.