When to take pregnancy test

Beth
I'm worried that I'm pregnant but my period isn't due for another 2 weeks, does it matter when I take a pregnancy test because they all seem to say "up to 4 days before missed period"