Pregnancy

I'm new to this, but how soon can you take a pregnancy test? It's been 2 weeks since the accident and I'm not supposed to get my period for another week but I'm getting nervous! Please help