People with a soy allergy sometimes wonder if they should also avoid peanuts — another legume that is a common allergy trigger. The answer is “not necessarily.” They are separate foods and their allergen triggers are unrelated. Soybeans also are unrelated to tree nuts such as almonds, walnuts and cashews. Those allergic to soy are no more likely to be allergic to tree nuts or peanuts than they would be to another food.