Getting hair dyed while pregnant?

Is it okay to get your hair dyed while pregnant? My hair has blonde in it and it looks dead, so I just want to go back to all brown, will it be safe? I'm getting it professionally done.