RCA splitter

Just a quick question, I have a project where I need to output the sound from a Boss DAC to two devices.
First rca line out is to a headphone amp rca in
Second rca out is to a 3.5mm Jack input on another device.

Now I only want to use o e device at a time, either the 3.5mmjack input for the speaker, or the headphone amp.

I’m wondering if I can use either a rca splitter box or two rca splitters on the Boss output, and more importantly will the sound quality suffer splitting the signal?

The reason for the splitter is so ido t have to keep changing the rca leads on the dac and weaken them (also for convenience)

Any advice welcome.

Yes, it will be OK to use a splitter or Y leads.
The combined input impedance of the two amps will not give the DAC output any problems.