Hair dying 23w

I know this may sound stupid, but are you allowed to get your hair coloured while pregnant?