Mutations in the BRCA2 gene significantly increase the risk of developing breast and ovarian cancers. Additionally, these mutations are also associated with other cancers such as prostate cancer, pancreatic cancer, and melanoma. The inability to repair DNA properly results in genetic instability, which can lead to cancerous growths.