The makers of Ambien say that its use can become addictive. That means in the long run you will be facing worse sleep problems.
Are you sure it is worth the risk of these possible side effects?
“Central and peripheral nervous system: Frequent: ataxia, confusion, euphoria, headache, insomnia, vertigo. Infrequent: agitation, anxiety, decreased cognition, detached, difficulty concentrating, dysarthria, emotional lability, hallucination, hypoesthesia, illusion, leg cramps, migraine, nervousness, paresthesia, sleeping (after daytime dosing), speech disorder, stupor, tremor. Rare: abnormal gait, abnormal thinking, aggressive reaction, apathy, appetite increased, decreased libido, delusion, dementia, depersonalization, dysphasia, feeling strange, hypokinesia, hypotonia, hysteria, intoxicated feeling, manic reaction, neuralgia, neuritis, neuropathy, neurosis, panic attacks, paresis, personality disorder, somnambulism, suicide attempts, tetany, yawning.”
Source
Have you tried other ways of improving your sleep? Have you seen a sleep specialist? Most Americans have too much light in their bedrooms. That impacts deep sleep. There are lots of less drastic things that you can do.