Yes, you can cook food on a fire pit. Many fire pits come with grill grates or accessories for cooking. Wood-burning fire pits are ideal for roasting marshmallows, hot dogs, and other campfire favorites. Ensure the fire pit is clean and use proper grilling tools for safe cooking.