Infertility?

Basically I’ve been having risky unprotected sex with my bf for a few months (which I know is bad don’t lecture me) and I don’t want to get pregnant (I’m 18) but I’m kind of surprised that I haven’t gotten pregnant and I’m really worried that I might be infertile? Or my bf might be, he’s had a really unhealthy lifestyle so idk. Is there any way I can tell if I’m infertile