Late period

After a late period do I still have to take a pregnancy test when I first get up or can I take it whenever?