Yes and no. Cooked oats (ie oatmeal) in a low FODMAP portion can help ease both constipation and diarrhea. But raw oats are high in resistant starch, which means they can trigger gas.
40