You can, but the bottom needs to have holes or perforations to allow the hot air to pass through, particularly for the basket-style air fryers. You can either puncture small holes with a fork or buy perforated sheets of foil.