Yes, you can wrap the sweet potatoes in aluminium foil, but this might result in softer skin. If you prefer a crispy skin, it's best to cook them directly in the air fryer basket.