Pregnancy test

Can I take a pregnancy test 12 days before my period and get a accurate result??