Pregnancy test?

I'm wondering when I should take a pregnancy test? My period should be in two days but it maybe possible that I am pregnant. I'm wondering if I should wait or just take the test?