Yes, that's correct. Fats provide about 9 calories per gram, while carbohydrates provide about 4 calories per gram. This means that, for the same weight, fats have more than double the caloric content of carbohydrates.
For example, if you have 100 grams of fat, that would provide about 900 calories, while 100 grams of carbohydrates would provide only about 400 calories. This difference in caloric density is one of the reasons why dietary fat is often emphasized in nutritional discussions and why it plays a significant role in a balanced diet. However, it's also important to consider the overall nutritional quality of foods, including vitamins, minerals, and fiber, when assessing their health impacts.