Hair dye

I’m being induced next week at 38 weeks, so I came to the salon to dye my gray hairs. I realized after they put the color in that it wasn’t the ammonia free dye and now I’m freaking out. Help! Is it okay?? 😩