Yes, I sure have!
Currently I have a sick dog who was keeping me awake for hours during the night.
The vet said to give him valium but instead I took the valium myself and one night both the dog and I took some valium and we both had a good night's sleep.
I have had to have sleeping pills when two of my children died and even though I did not like taking them I was sort of talked into it by being told I would also get sick if I did not sleep.
I also had themn in hospital after a bad accident as getting used to pethidene/pain still stops you from sleeping half the night.
Don't often need them now luckily