Pregnant ?

I went to the doctor with what I thought was a kidney infection, she done a urine sample . Would she of known by the urine sample if I was pregnant ??