dye during pregnancy?

Li
Is it okay to dye or even cut your hair? I'm not sure if it's a myth.. but growing up I heard it's not good to dye or even cut your hair while pregnant, it can cause complications.