Is dying your hair safe?

I’m getting married in September and my hair appointment is in August. I’ll still be in my first trimester when my hair appointment is. Is it safe to dye my hair while in the first trimester? I can’t not dye my hair for our wedding because it’s atrocious right now and won’t look good. 😭