Sorry, but no. The Roku tv only has one code available, you can't switch it to different address. Probably same for your Stereo. You could buy a wifi voice remote, pair it to the Roku TV, then cover the front of the TV's IR sensor so it can't see the stereo IR commands. But still, you will be able to control the tv by Wifi.
Edmund
Roku Community Streaming Expert
Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.
I am not a Roku employee.