Hijack Remote Control @38khz

Hello

I have an audio amplifier a remote control unit. So far I could figure out that the remote control is operating at 38khz. Now I was thinking, if it is possible to send remote control actions from HASS to the audio amplifier. Is it possible to gather the commands send from the remote control so that i can use it within HASS without using the remote control? That would be extremely helpful since my amplifier is one of my dumpest devices at home.

Thank you very much for your help.