a question

i’ve been on the pill for almost two months. i had just started the second package when my boyfriend and i decided to have sex. we used a condom, and he pulled out before he came, on top of me being on the pill. im just asking bc murphy’s law and all; should i be safe and okay?