Whether it's the whole house involved or just a fire in the kitchen, people try to save what they can, including food. But generally, saving food that's been in a fire is not a good idea. Heat from a fire can activate food spoilage bacteria.
Extreme heat can cause cans or jars to split or rupture, rendering the food unsafe.
Toxic fumes can permeate the packaging and contaminate the food. Discard any raw foods stored outside the refrigerator, such as potatoes or fruit, that could be contaminated by fumes. Fumes can also contaminate food stored in refrigerators or freezers. The refrigerator seal isn't airtight and fumes can get inside. Discard any food with off-flavors or odors.