I’m not sure it does, or if it does it doesn’t work very well. I have an apple music subscription. If I enable iCloud Music Library it only adds the songs to my other devices if they’re available on Apple Music.
There doesn’t seem to be a way for me to upload my own MP3s to the service like you can on Google Play Music.