Protein in urine?

My doc said that discharge in pregnancy can cause protein in urine ? Has anybody else heard this before ?