That’s a very good question but is complex to answer. Insomnia is caused by a great range of conditions, many of which are best treated by medications other than cannabis, and/or by a lifestlye change, or therapy. It can be a side effect of another underlying illness or be a stand alone disease in itself.
For me, I’ve tried every formal medication in the book. Been through the psychiatrists, and a range of unsure diagnoses. Some made me very sick both physically and mentally. The best sleep specialist I had seen told me that the only option would long-term benzodiazepene treatment. He refused to give them to me (said they would slowly kill me) without being sent for a second evaluation at a particular hospital renowned for their sleep studies. He was an excellent doctor who pointed out many parallels I came to find with other insomnia suffers on here.
My insurance wouldn’t cover it and in all honesty, I trusted his judgment.
I began growing and experimenting with cannabis. It saved my life.
What I’m trying to get at is that it effects everyone completely different and the only way to know is to try. Some people it will make an absolute difference with, others react badly and shouldn’t use it at all. Fortunately, we’re at a time and place where its research and medical use are finally starting to be celebrated instead of demonized and we can also begin to have a proper medical understanding, with guided use from a legitimate doctor.
If it’s legal where you live I would advise seeking one as I did, if not the only way to know is to self medicate and find out. Prohibition is a nightmare.