Pregnancy test

Hi, my husband and I had sex on the 23rd and the 26th of June which had the highest chance of getting pregnant. When is the earliest I can take a pregnancy test? I'm expected to get my period around the 11th of July.