Can you dye your hair while pregnant?

Just wondering because I really want to dye my hair