This is the correct answer, but 1 calorie = 4.184 Joules of energy. So essentially its the same thing as saying it takes 4.184 Joules of energy to heat 1 gram of water 1 degree C. It's also the same thing as saying 1kcal of food contains 4184J of potential energy. It's just another manner of saying the same thing with different units