Cancer—especially breast cancer—often seems to run in families. This could be because the relatives share certain lifestyle habits or have the same environmental exposures. Occasionally, though, the cancer can be inherited—a mutation in the genetic code that is passed down from generation to generation.