Morning Pee

Can I pee first thing in morning in a cup, go buy a test really quick, then use it??? Crazy question I know. I'll be 10dpo