Is it safe to do hair coloring while pregnancy?

Because women’s beautiful hair processes many chemicals, therefore mothers should concern about it. Does the substance chemical has any effects to the baby?