No. The Apple Music subscription service has never been able to directly share your music library.
You can use Family Sharing to share your iTunes Store purchases, and share the actual subscription to Apple Music with other family members. But your music library remains separate in both those cases from your Family members. They can see and download any of your purchases to their devices. Anything not purchased from the iTunes Store, such as songs ripped from CDs or downloaded from other sources, is not accessible to other Family Members.
Link-> How to share purchases with your family - Apple Support
You can use Messages to share Apple Music playlists so other people can see what you are listening to, but it only shares a list of songs. If they have an Apple Music subscription or share your subscription they can access and play those songs. Otherwise, its simply a text list.
Link-> Share songs from Music with other apps on Mac - Apple Support
Separate from Apple Music and Family Sharing, is Home Sharing, which lets you share a music library form a computer to other devices on the same Wi-Fi network. This is entirely separate and independent to Apple Music and Family Sharing.
Link-> Use Home Sharing to share media from a computer to other devices - Apple Support