Can I dye my hair while pregnant?

Zuremi
Ok ladies. It's my first time pregnant and my mother has always told me that pregnant women should not dye their hair because can affect the baby. How true is that? Have y'all done it? Thank you for your help.