I need to know

I had sex a lot when I was fertile with no condom I wanted to take a pregnancy test Can I take a pregnancy test 10 days before my period