Condom broke

So my boyfriend and I were having sex and the condom broke as he finished. I was wondering when is the soonest I can take a pregnancy test. Like 2 weeks? Or do I have to wait until my period is late ?