What counts as unprotected sex??

If I am on bc pills and take them perfectly and my partner and I have sex without a condom but he pulls out, is that unprotected sex?? (Neither of us have STDs so I am just referring to pregnancy) also, if he came in me would the be unprotected sex?