Pregnancy test

When is the earliest you can take the test ? My husband came in me when I was fertile and that was 6 days ago