Pregnancy test

Could a pregnancy test turn positive after a few hours after being used. I took one and it was negative after 5 minutes. Well I looked at it later that day and now it says positive! I'm not sure if that right our if I need to buy a new test