It's obviously right by conservation of energy, but it's equivocating the word "in". Food is "in" when you eat it, but calories are "in" when they're digested and metabolized - that's several steps further down the pipeline.