Yes, genetics play a significant role in cancer risk. Some individuals inherit mutations in certain genes that predispose them to specific types of cancer. For instance, mutations in the BRCA1 and BRCA2 genes significantly increase the risk of breast and ovarian cancer. Genetic testing and counseling can help identify individuals at high risk, allowing for preventive measures and early detection strategies.