I tried it some time ago and found it was useless in that role.
Kodi is 99% a TV-like frontend to a local-disk media collection, its web interface is an afterthought, its performance for remotely served media is atrocious.
Jellyfin, Emby and Plex are media servers first and foremost.
I actually use Kodi 90% as a front-end to Jellyfin. If I only watched or listened to my media at my TV, just Kodi and a SMB or NFS share would be fine. But with Jellyfin I have the same media everywhere. This is somewhat more important for music than for movies and shows.