Pregnancy test/ diagnosis

Can doctors be wrong doing blood pregnancy test or urine tests? Or diagnosis in general??