Genetics play a significant role in cancer development, with certain inherited genetic mutations increasing the risk. For instance, mutations in the BRCA1 and BRCA2 genes are linked to breast and ovarian cancers. Family history of cancer can also indicate a genetic predisposition, warranting more frequent and earlier screenings.