Yes, you can wrap potatoes in foil and cook them in an air fryer. Wrapping potatoes in foil helps to trap steam and heat, allowing them to cook evenly and retain moisture.