1 days before my period

Do I have to wait a week after my period to come or not to test a pregnancy test???