Is it possible to get hep b even after having been vaccinated?

It's possible. No vaccine is 100% effective. The way to tell whether it works is to check a hbsab (surface antibody). If it's positive, you should be protected.