Enable ear detection to pause music when using AirPods Pro on a MacBook Pro
Yes, this is possible. Once the AirPods are connected, go to Bluetooth Preferences. There should be an options button next to the device. There will be a checkbox with the option to enable Automatic Ear detection.