Am I creating a bad habit ?

My 12 week old has infant dyschezia since we was 3 weeks old . He use to cry for a hour just to poop or fart in the mornings . I got so tired and just started putting him in the mamaroo and he would start to poop seconds after putting him down . Now he poops whenever he’s I n the mamaroo, is this creating a bad habit ?