Scared plan b

I took plan b on an empty stomach would it still work. I is my first time taking it and I just took it didn’t eat anything