Excess gas can cause changes in bowel movements. Some babies may have constipation due to gas formation, while others may have diarrhea. Constipation or difficulty pooping could be resolved once the gas is relieved. However, you may seek a pediatric consultation if it is a frequent issue.