How long should i wait to take a pregnancy test after sex?

I had sex with my boyfriend yesterday for the first time and he said that there was something on the outside of the base of the condom and he didn't know if it was cum or if it could have been my discharge.. 
How long should i wait before buying a pregnancy test