Right
安 supplies the sound: ān → àn with tone shift, an exact rime match. The character was coined to transcribe the chemical term 'amine' (from ammonia, NH₃), with
安 chosen as the closest-sounding native syllable. Same phonetic family:
按 press,
案 case,
鞍 saddle.