Most cancers are not hereditary. However, certain genetic mutations, such as those in the BRCA1 and BRCA2 genes, can increase the risk of specific cancers and may be passed on to offspring. Genetic counseling is recommended for individuals with a family history of cancer to assess and discuss the risk of hereditary cancer syndromes.