Unprotected sex the day before period

We just started TTC a week ago, my period was supposed to come 4 days ago and it didn’t. Could I already be pregnant? How soon can I test?