Sex for the first time ..

I had sex today twice with a condom and once without he didn’t finish inside but I’m scared i might get pregnant .. what should I do also I’ve already realized I’m dumb and should probably not be having sex