100% ask your doctor if you can! Or if you're in a country where melatonin is otc, try taking 2mg about 1-2 hours before bed (I find it either works by then, or at about hour 4-5. It's odd). Don't go overboard with the dose, it won't kill you or anything but it can make things worse.
aaaalso I got mine after starting on adhd meds, so the 1-2 punch worked wonders for me, it might not be as effective alone idk (but the comorbidity is huuuge)
good luck!