Plan B pill desolved

So me and my SO where having sex without a condom for the first time (I'm not on bc yet). And he told me he nutted in me a couple of times. Then after we were done we went to go get a plan b pill I took it and before I could even swallow it, it desolved in my mouth. But I swallowed the rest that left. I'm trying to see if it will still work or what??? Plz help