When to take a pregnancy test

Summer

Can I take a pregnancy test from the dollar store 1 day before my period and still have it be super accurate ?