Genetics can significantly influence cancer risk. Hereditary cancers are caused by inherited genetic mutations passed down from parents. For instance, mutations in the BRCA1 and BRCA2 genes are linked to a higher risk of breast and ovarian cancers. Similarly, mutations in the APC gene can lead to colorectal cancer. Even if a person inherits a genetic mutation, it does not guarantee cancer development; it merely increases susceptibility.