Plan B

Will plan b cause an ectopic pregnancy? And how long after sex can you take it? It’s been 48 hours. I’ve taken it 3 times now and I am nervous to take it again. Thx

Edit: when I say three times, I mean in my lifetime, not in one cycle or consecutively