27 wks pregnant can I get my

Can I get my hair dyed my doctor said yes as long as I wear a mask but all these people around me say I shouldn’t do it help !