sperm affect the results in preg..

does having sperm inside you affect the results in a pregnancy test? AF is due in 2 days, hubby and I had sex last night and obviously he finished inside me. Took a test this morning and it came out negative. I will retest the day AF is due but just wanted answers 🙃