Why can't you? I certainly can and do, and have since XBMC actually ran on an OG xbox in early 2000's.
I use kodi on my Nvidia Shield as my media player for the living room, and it's never been better. I just use SMB/CIFS to connect to my network storage where I have a "video" directory, and works perfectly for any video or audio format. My new tv purchased around christmas also has android tv os on it directly, so in theory don't even need the Shield, but setting this up for my aunt with a Sony tv, the proc wasn't up to dealing with higher-end formats (certain 1080p codecs, 4k content), but works with most 1080p formats and below just fine.
You could always just install the pirate repos direct on kodi to get whatever wherever, but they're all a bit sketchy these days, and highly recommend a privacy vpn if you do...
-mb