Yes, a safe and effective vaccine that offers 98% to 100% protection against hepatitis B is available. Preventing hepatitis B infection averts the development of complications including chronic disease and liver cancer.
Read more about hepatitis B on the WHO website
https://www.worldhepatitisalliance.org/what-is-viral-hepatitis/