Period delay

Hello everyone, I’ve been a few days late for my period. Today, I went to the lab to do a pregnancy test and it was negative. The doctor also said an infection in the vagina could cause a delay ? I’ve been having a milky discharge. Is this true ?