How effective is the emergency contraception Plan B

So I was having sex w my boyfriend who lives 3 states away and we never had the birth control talk and I am currently not on it and he came inside me long story short I took the pill the very next morning. I am freaking out right now