They can be used as a screening, but they’re not valid or reliable measures of hearing. There are too many variables (e.g. type of headphones, insertion depth, occluded vs. non-occluded headphones, sound environment, acoustics of the ear, etc…).
My Apple Watch can monitor my heart rate, ECG and blood oxygen, but I wouldn’t want that data used for programming a pacemaker.