Depends on cause of. Insomnia. If caused by a specific situation, interventions before medication may be better. Examples; too much tv or computer time, eating and exercising too late in the evening, staying up late wrecking sleep quality. Change those behaviors before medcation is used. If it's depression or other diagnosed psychiatric disorders only your physician can say what is good medication.
Yes. There are many good sleep aids. First study you sleep habits and hygeine. Avoid napping during the day and refrain or reduce caffiene and other stimulants. Prepare for bed and sleep. Don't eat late at night. Try otc sleep aids first. If needed discuss sleep issues with your pcp. You may need to see a sleep specialist and may even have to have a sleep study. Alcohol/drugs can be a problem.