Does fats has the same energy value as carbohydrates?

No, fats have the most energy value. Carbs and proteins have about the same amount.