Pregnancy Test

If you take a pregnancy test a week after you have unprotected sex? Could it give you the wrong results?