can be prevented by getting vaccine and HBIG (hepatitis B immune globulin) soon after coming into contact with the virus. Persons who have recently been exposed to HBV should get HBIG and vaccine as soon as possible and preferably within 24 hours, but not more than 2 weeks after the exposure
Hope this helps!:)