Yes, you can use aluminum foil in the air fryer recipes. Make sure to wrap the food tightly in foil as it will help keep the moisture and heat inside. Be careful not to put any pieces of aluminum foil directly touching the heating element of your air fryer. This could cause a fire or damage your appliance. In this case, you're wrapping the corn in foil so it's 100% safe.