Pregnancy test

Can I take a pregnancy test even though my periods not for another 14 days?