No condom

So I had unprotected sex 3 days ago with my bf and my period is suppose to come in 8 days. If I take a pregnancy test now would it work?