Yes. To connect AirPods to a Nintendo Switch, put your AirPods into pairing mode and go to System Settings > Bluetooth Audio > Pair Device. Select your AirPods in the list of available devices.