Can I do this or should I wait ?

Can I take a pregnancy test the day before my period is supposed to come and get an accurate result ?