Pregnancy test

I took a pregnancy test and it showed negative. I looked at it again about 20 hours later & now says positive. Is it invalid?