Some cancers have a genetic component, meaning they can run in families. However, having a family history of cancer doesn't guarantee you'll develop it. Genetic counseling can help assess your risk if you have concerns about inherited cancer risk.