The answer is yes, but there are a few things you should know before doing so. First of all, it's important to make sure that the foil is crinkled up so that it doesn't come into direct contact with the heating element. If the foil is touching the element, it could cause a fire. Also, be careful not to overload the air fryer with too much foil. The machine can only handle so much at once, and if you pack it too full, the heat will build up and could potentially damage the unit. So if you're looking for a way to cook food wrapped in aluminum foil, the air fryer is a great option. Just make sure to follow the tips mentioned above to avoid any potential problems.