How could this happen..

I’m so so dumb, This is the most confusing day of my life.

I just found out i’m pregnant which i’ve been wanting for such a long time!!! But there’s a problem.. me and my bf broke up and I had sex with another guy... I went to a party and of course my dumbass self got to drunk and I took a morning after pill after. My question is... I don’t know when I ovulated at all. But... I took a morning after pill after unprotected sex.. does this mean it didn’t work?? or I prob already ovulated before I had unprotected sex and well ovi the pill wouldn’t have worked. Now idk if it’s my bfs or this stranger.. HELP... I’m so scared yet so happy.. I’m such a dumbass..