The hepatitis B vaccine is a safe and effective vaccine that is recommended for all infants at birth and for children up to 18 years. The hepatitis B vaccine is also recommended for adults living with diabetes and those at high risk for infection due to their jobs, lifestyle, living situations, or country of birth.