How soon can I test?

My boyfriend and I had sex and he didn’t pull out. How soon can I test??