There is a safe and effective vaccine that will prevent a person from getting the hepatitis B virus.