Do you have to wait?

Do you have to wait until after you're period is due to take a pregnancy test