Yes, you can bake or roast food in an air fryer. While air fryers are primarily known for their ability to fry food using minimal or no oil, they can also be used for baking and roasting. Most air fryers come with temperature control settings that allow you to adjust the heat for baking or roasting purposes. By setting the desired temperature and time, you can achieve results similar to traditional baking or roasting methods, but with less oil and a faster cooking time.