I think it's possible. But I would agree with Kanewolf to know your product models first.
I have an AAXA M5 projector and use it with Amazon Fire Stick all the time. Also, I know it would work with Roku and Chromecast as well. My projector sounds well. But many other models would sound shady.
Also, if you want to replace TV with a projector, you also have to consider a lot of factors, such as room/projection size, control over light. I have a post about projector consideration factors. Feel free to have a look.