HBV is very infectious much more than HIV if you are not vaccinated you should do it asap the virus does not get into the liver directly it takes some time, so if you get vaccine quickly you should be fine. Go to the doctor and tell that you need not just routine vaccination, they have special procedure.