If you have intercourse before ovulation, it will take about 17 days from the time of intercourse until pregnancy can be detected. If you have intercourse after ovulation, it takes about 15 days from the time of intercourse to the time when pregnancy can be detected, when a blood HCG test can tell you whether you are pregnant earlier. In the case of the urine HCG test, it takes a longer time clinically. It takes about 20 days from the time of intercourse to detect pregnancy, so a blood test will tell you if you are pregnant sooner. It is also recommended to pay attention to hygiene when having sex to avoid the need for treatment due to inflammation of the vagina or other parts of the body, which can affect the fetus.