pregnancy?

I had sex with my boyfriend last night. We were always super careful. But a few days again we had unprotected sex, he didn't full on cum inside me, but I'm worried anyway because I know sometimes small amounts can come out. Because of medication I take, contraceptives don't work with me. And I feel like we really messed up. I'm terrified :(