4 days late for period after sex a week before period

I had unprotected sex a week before my period was due (2nd June). I’m now 4 days late for my period. Could I be pregnant? It’s so much after my ovulation date that I didn’t think it was a concern. When can I take a test? Online it says wait 21 days after unprotected sex but also says take on the first day of your missed period… what should I do?

UPDATE : Got a positive result on 5 day of late period.