Getting hair dyed while pregnant?

Is it safe to get your hair dyed while pregnant? I’m wanting to go back to my all natural hair color before baby comes in September.