Do AirPods work on a plane?

And more importantly, can you use them?