Constipated miralax ok?

Jessica
I'm 11 weeks and really constipated dr gave me colace but not helping would it be ok to try miralax?