Pregnancy test

After how many days of your last sex episode will an pregnancy test be accurate?

If I take it after 11 days will that still work?

Edit: my periods already 7 days late...