If you listen to music actively, then your brain will be engaged, which means it is unlikely that you will be able to drop off. That said, various studies have shown that music is a good way of relaxing prior to sleep. If you chill out with some slow tempos and downbeat sounds for around 45 minutes before going to bed, then your parasympathetic nervous system will go into a state that is much more prepared for slumber.