was i protected?

so, on friday, saturday, sunday and monday; i missed 4 pills because i was sick. i felt better, i took my pills on tuesday and wednesday and thursday. but on thursday, me and my boyfriend had sex and i took the pill 10 seconds before the sex. was i protected or should i wait and see?