As per vidstige's answer, it would probably only have minimal impact, although it is mentioned in some health articles, but usually not as the first item.
Hard stools or constipation can by understanding the causes of constipation addressed changing some habits for the most common causes. As per Causes of constipation
- Diet - Not eating enough fiber
- Dehydration - Not drinking enough water
- Delay - Waiting too long to have bowl movements
- Being immobile or not active enough.
- Anxiety or depression.
- Side effects of some medications
- Some medical conditions
- Pregnancy
As per this articlethese articles Hard Poop, Constipation in adults the other first two are addressed by drinking more water, and changing your diet to include more fiber. If you are still getting hard stool after that, then also include some foods that have a laxative effect. e.g.
- prunes
- beans
- kiwi (fruit)
- apple
- oatmeal
- flaxseed
- liquorice
See Which foods are good for constipation? and just a Google Search for Laxative foods.
The delay one can be addressed by not waiting to go, and even if you feel you just need to pee, go and sit down on the toilet, this will sometimes trigger bowel movements.
Exercise would address #4
For #5 to #8, talk to a medical professional.