Pregnancy test

If I took a test four days before my period is due could it be wrong?