no, foods are analyzed for their digestible contents (fats, fiber, carbs, various kinds of alcohos etc.) and their energy content is then looked up in reference tables. The reference tables are in turn populated with more careful experiments that take digestion, waste products and metabolic efficiency into account.
Directly measuring the physiological energy content for millions of food products would be impractical.