Preventing HBV infection (by being vaccinated for HBV as a newborn) has been shown to lower the risk of liver cancer in children. 
Giving the HBV vaccine to babies can lower the chance of them getting liver cancer when they are a child.  