Living drug free is a wonderful thing. Other than very dangerous sleepwalking, don't know any side affects from ambien. But addiction to any drug is a very bad thing. Withdrawal from diazepams (valium, librium, ativan, etc.) or from barbiturates can easily be fatal. (Can't say that about opioids.) The same may apply to ambien.
If you are having trouble falling asleep, I would strongly recommend cutting out caffeine, turning off all electronics two hours before bedtime, do not have a TV in your bedroom, and take melatonin and valerian root when you go to bed.
It is shocking to me to see the grip that Big Pharma has on the American people. Your body is fearfully and wonderfully made by G-d. It doesn't need these medications to function properly.