A single gram of fat contains a total of 9 calories, except for MCTs which contain 10.
You are also right about the carbs and protein calorie content.
Fats - 9 (MCTs 10)
Carbohydrates - 4 calories per gram
Protein - 4 calories per gram
Carbohydrates - It doesn't matter what type of carb it is, it could be sugar, fiber, simple, complex or alcohol, all have 4 calories per gram. However, some carbs don't contribute to energy in humans, for example, fiber cannot be digested therefore we can't use it as a source of fuel even though it is a carbohydrate.
Protein - All have 4 calories per gram but there are also different types of quality when it comes to protein.
Fats - Almost all fats contain 9 calories per gram but not medium chain triglycerides, they are said to contain 10 calories per fram.
Fats are broken into seperate groups, transfats, polyunsaturated, monounsaturated and saturated. They are eventually digested into what we call "triglycerides", medium chain triglycerides and long chain triglycerides (MCTs and LCTs).