Testing in the morning?

Do you have to take a pregnancy test in the morning?