Can mirilax cause gas in babies?

Not really. Gas in babies is either swallowed air, or from incomplete digestion of food. Miralax (polyethylene glycol) has nothing to do with this.