Pregnancy test

Can a pregnancy test fail ? I mean even though it shows negative and later on it shows or comes up positive ????