Would peeing during the night effect a pregnancy test?

Shauna
I always get up to pee once or twice during the night but I don't drink anything before I go to bed. Would a pregnancy test still be accurate if I took it when I get up in the morning?