Pretty much, yep. The point is to neutralize the indigestible sugars through chemical or enzymatic action. So there should be a solution to any given type of food which causes gas. Just need to find the right trigger.
Side note… Fermentation is a technique humans used for millennia, but modern technology has replaced that with methods that fail to neutralize those indigestible elements. So I also use lacto fermentation on various foods.