If you have unprotected sex before a pap test, it will mess up the results. As per experts, semen can interfere with any swabs taken that are needed for evaluation. But according to some experts, having sex with a condom on can also throw off the test. Therefore, it is advised that you must avoid having sex at least 48 hours before.