did the condom work?

hey (I don t speak english so sorry if I don't explain myself well.

today I had sex with my boyfriend and we used a condom. He didn't come in me and when he went out, I noticed the condom moved... just a few centimeters and I don't know if I should take a pill. ( the codom move a little we we have sex)

help me please