Is stomach cancer hereditary?

Sometimes. In certain instances, famililia predisposition has been reported. In addition, hereditary nonpolyposis colorectal cancer (hnpcc) has been shown to be associated with an increased risk of gastric cancer.
Not really. While certain ethnic groups have a higher incidence, it is thought to be due more to environmental influences than hereditary factors.