Cancer can result from both inherited genetic mutations and acquired mutations. Inherited mutations, such as those in the BRCA1 and BRCA2 genes, significantly increase the risk of developing cancers like breast and ovarian cancer. These mutations can compromise the DNA repair mechanisms, leading to increased genomic instability and higher susceptibility to cancer.