Pill help !

I'm on the pill an have been for a while but on my last pack I missed 5 pills an have just recently started the new one (also have a cold if that's important) I had sex with my boyfriend an the condom came of in side me an had come in it will the pill be affective or do I need to take the morning after pill ?