Hepatitis B vaccine can prevent hepatitis B, and the serious consequences of hepatitis B infection, including liver cancer and cirrhosis. Hepatitis B vaccine may be given by itself or in the same shot with other vaccines.dults getting hepatitis B vaccine should get 3 doses — with the second dose given 4 weeks after the first and the third dose 5 months after the second. Your doctor can tell you about other dosing schedules that might be used in certain circumstances. Top of Page.