Condom came off during sex

I’m not sure how often this happens but I slept with my boyfriend last night and when he “finished up” he mentioned that he “lost” the condom 😭 it wasn’t on the bed and later found it hanging out, so I guess the question here is - should I get the pill?