Genetics are important, but when people from one population move to a different region they tend to get the cancers of the new population.
Prostate cancer and breast cancer rates are low in Osaka, but in Japanese people living in Hawaii the rates match the Hawaiian population.
Japanese people living in Japan have high rates of stomach cancer, but those rates drop for Japanese people living in Hawaii.