How soon after sex to take a pregnancy test?

Abbey
My husband and I recently decided to start TTC. We had been using condoms and I was charting my period but not paying attention to when I was ovulating since I wasn't trying to get pregnant. How soon after sex can a test tell you if you're pregnant or not? I know the easy answer is to wait for my late period but if I wanted to try before that when could I start?