Taking drugs such as Ambien may help sedate a person, but sedation is not the same as sleep. In fact, these hypnotic drugs can limit the deeper brain waves produced during REM sleep.

https://recoverypartnernetwork.com/drug/sleeping-pills/ambien-addiction