Yeah, you might have more success that way. I take 3mg right before bed and I find I fall asleep a lot faster than I do without it. Especially if I've been on a screen before bed or my brain just doesn't want to shut up.
if you're thinking about trying the option where you take it a few hours before bed time, make sure you're going to bed at a consistent target time (10pm for example). Since this method is more targeted at resetting your circadian rhythm.
If you feel like you have more serious sleep/wake problems I would definitely recommend seeing a specialist. I was surprised to learn that people who say things like "I can't go to sleep until x o'clock" or "I can't stay awake beyond x time" probably suffer from circadian rhythm problems that are treatable.. but the treatment isn't always as intuitive as you might think.