Yes,your thought is correct.If you go through Ayurvedic theories, disturbence in our body physiology is also due to holding the natural urges(gases,micturition,sneezing
,hunger,thirst,sleep etc.)as in your case.
That is why u have now problem of hard bowel movements.
There are other factors also, like improper dietary habits,less water intake, eating more dry foods,absence of exercise.
Not to worry much for this,because if u start treatment in time & change your life style the condition will improve.
Basti(similar to enema
process) treatment by proper consultation.
There are useful medications for oral dose.
Take enough sleep.
Have enough water intake.
Increase amount of home made ghee in diet,also take a spoonful of it with warm milk before sleeping everyday.
chewing dry black grapes is a good remedy .