The answer is yes.
Dietary fiber — found mainly in fruits, vegetables, whole grains, and legumes — is probably best known for its ability to prevent or relieve constipation.
What is dietary fiber?
Dietary fiber, also known as roughage or bulk, includes the parts of plant foods your body can't digest or absorb. Unlike other food components, such as fats, proteins or carbohydrates — which your body breaks down and absorbs — fiber isn't digested by your body. Instead, it passes relatively intact through your stomach, small intestine, and colon and out of your body.
Recommendations :
Fiber is commonly classified as soluble, which dissolves in water, or insoluble, which doesn't dissolve.
Soluble fiber :
This type of fiber dissolves in water to form a gel-like material. It can help lower blood cholesterol and glucose levels. Soluble fiber is found in oats, peas, beans, apples, citrus fruits, carrots, barley, and psyllium.
Insoluble fiber :
This type of fiber promotes the movement of material through your digestive system and increases stool bulk, so it can be of benefit to those who struggle with constipation or irregular stools. Whole-wheat flour, wheat bran, nuts, beans and vegetables, such as cauliflower, green beans, and potatoes, are good sources of insoluble fiber.
Most plant-based foods, such as oatmeal and beans, contain both soluble and insoluble fiber. However, the amount of each type varies in different plant foods. To receive the greatest health benefit, eat a wide variety of high-fiber foods.