Yes, you can cook corn on the cob wrapped in foil in the air fryer. We like to cook it without it, but this is a great way to lock in the flavor to ensure that the corn on the cob stays juicy.