Heredity can play a significant role in cancer risk. If a person inherits a mutated gene from one or both parents, their risk of developing certain types of cancer increases. Hereditary cancer syndromes, such as Lynch syndrome and Familial Adenomatous Polyposis (FAP), are examples where inherited genetic mutations dramatically elevate cancer risk. Genetic counseling can help families understand their risk and consider preventive measures.