While most cancer-causing mutations are acquired, some are inherited. Hereditary mutations in genes like BRCA1 and BRCA2 significantly increase the risk of breast and ovarian cancers. Genetic testing for these mutations can help in risk assessment and guide preventive strategies.