Ttc and dying your hair

Marissa
Is it ok to dye your hair when TTC or are pregnant?