Prego test

Does having sex before taking a pregnancy test affect the results?