Hair Dye while pregnant

Gabby
My doctor told me if I want to dye my hair while I'm pregnant I cant+go anywhere near my roots. Just curious if anybody dyed their whole head while pregnant and if their baby was fine?