That should be fine. If you've already missed your period a pregnancy test should pick it up no matter what time of day.
And the only reason they say it's best to test in the morning is because that gives the hormone a chance to build up. Taking it whenever you wake up should be fine.
Good luck