Yes. It is possible. The Calibre content server is excellent. However, I would recommend calibre2opds. The mobileread Wiki has some useful information. You may like to look at the following page in particular which has some screenshots.
https://wiki.mobileread.com/wiki/Calibre2Opds_Using
I have it set up on a QNAP NAS and can access it both from my internal network and the internet. It works well with Kobo and Kindle EReaders and Moon on Android. Fantastic when you are on the road.