How early can a pregnancy test work?

kayiland
My bf came in me two weeks ago and i i dont know if i should buy a test or just wait and see if i miss my period