Yes, halloumi can be cooked in an air fryer and will result in a crispy texture on the outside and a gooey, melted center. It is important to preheat the air fryer before placing the sliced halloumi inside.