Plan B?

Br
So I'm on my period and my boyfriend and I were having sex and the condom broke. He didn't cum or anything but he was pretty sure there was precum in there. So he told me to take the morning after pill. I took it because it's better to be safe then sorry. What are the effects of the pill if they're are any?? Was it a good idea to take the pill??