Pregnancy test

The results in a test is it valid after a few hours or not ??