Yes the good bacteria in the yogurt has been shown to help relieve constipation and make you go poop more often.
Yogurt also helps your bodies digestive system. So if you have digestive issues as well then yogurt is good for treating digestive issues as well as constipation.
Eating prunes and drinking prunes will also help you go poop and relieve constipation.