Can I test at 10 pm and get a positive?

I want to test so bad right now but I don't know if it'll come out negative bc I've heard it's best to take in in the am???