Insomnia can be of different types. But it has high chances of getting chronic. Taking pills is a good way to get rid of it, but drugs should not be a substitute for good quality natural care. Also, consult a proper doctor, to prescribe you such pills as they might have side effects. Better to take proper precautions, rather than repenting later.