It's fine, but you really should wait until your second trimester.
My dr said its fine to dye your hair while pregnant as long as your not changing it every week :) I do my roots like once twice a month
I did it, my doctor told me no bleach and no ammonia, and make sure there's air flow in the room