Dying my hair

I’m 19 weeks 2 days and I was wondering if it was safe for me to dye my hair? I see a lot of people say that it’s fine but I can’t help but wonder why people came up with this precaution and if anyone knows of any stories that ended badly for children due to the mother dying her hair?