Sure. Its effect tends to wear off after a few years of use.
You need to look out for Ambien toxicity. When taken properly this is not a problem but people tend to wake up after 4 hours of sleep, and without thinking take another pill, resulting in toxic amounts of Ambien in the blood. This happened to my wife and resulted in a trip to the psych ward due to extreme anxiety. The solution was to put the Ambien in the bathroom and not next to the bed. The other solution was to take Ambien CR which last for 8 hours.