Yes, you can. In arrays, the in operator checks if a particular index exists, not the value itself. For example, for the array ['apple', 'banana'], '0 in array' would return true.