STD affect pregnancy test

Kayla

Can having a STD affect a pregnancy test ?