Yep, I dyed my hair all through my pregnancy. I actually dyed it quite frequently - because due to pg hormonal changes my hair would not hold onto the dye! It would wash out in plain water and leave a dull yucky colour (and I was using permanents too).
So just be wary that it may not turn out the way you want!