It is extremely rare for cancer to be transmitted through sperm or eggs. However, there are genetic factors that can increase the risk of cancer in offspring. For instance, mutations in genes like BRCA1 and BRCA2 can be inherited and increase the risk of certain cancers. Genetic counseling can provide more information on these risks.