Audio Output questions

Im planning on replacing my old Sonos Connect with HA and Music Assistant.

Currently, my Sonos Connect device connects directly to my older Denon (no bluetooth) amplifier with standard RCA stereo jacks.

Can I run the HDMI Output from HA through an RCA component splitter and into the receiver for the same result and have all of the music played on HA/MA run through the HDMI audio output?