will I get pregnant

If you take the pill everyday at the same time and you let your boyfriend cum in you is that ok? It's happened before but I'm just checking