Pregnancy test

Hi everyone! This morning I took a pregnancy test and pretty sure it was negative. When I rushed out the house this morning I left the test on the bathroom sink and when I came

home it was positive. Are pregnancy test false after sitting for a couple of hours?