Pregnancy test

Hi so I want to take a pregnancy test to make sure I am or am not pregnant. It would only be one or two weeks in but I’ve been told that I need to take it in the morning?? Is this true? Why can’t I take it at any other time of the day??