Yes, it is safe to line the air fryer with foil when cooking the fajitas. I do not recommend adding the foil when preheating; you need food in the air fryer to hold it down. I like to use silicone liners made for the air fryer for easy cleanup.