Yes, essentially you attached the audiogram in accessibility as others have referenced. It’s systemwide and works across many different types of AirPods not just the airpods pro 2.
I can't remember which app I used a few years ago, but there was a way to import the audio curves into the phone in settings.
Mimi hearing test app[1] works for that as it gives you an audiogram that you can import in Settings -> Accessibility -> Audio & Visual -> Headphone Accommodations -> Audiogram
I just downloaded and tried it for iPhone. Fwiw once you do the hearing test, on the app homepage you can sync to Apple Health and it sends over the audiogram.