Could I get pregnant

If my boyfriend came in me 2 days ago and I just took my “sugar pill”, will I be ok?