Hair dying

I've heard stories that you can't dye your hair while pregnant, but others have told me it's false. So can I or not?