Yes it is possible, but I haven't yet found a way of doing it securely. So it is not advisable.
I use a Pi 2 with OSMC and TVHeadend to watch TV, and to stream it around my home network. I wrote a procedure for the setup here:
http://unixetc.co.uk/2019/11/22/how-to- ... pberry-pi/
(Pi 4 is not supported yet)
Streaming to other devices on your home network is easy. Streaming to devices remotely over the Internet requires forwarding of two ports on your router. It works fine but is not really secure. I tried using an SSH tunnel and a key. But that method, although secure, is too slow unfortunately.