can you use yeast cream while dialated?

Idk if I'm dialated at all or not but I think a yeast infection is coming on again I've had them monthly this pregnancy.. so if my cervix was open/dialated and I didn't know (I'm 37 weeks) could it hurt the baby? The medicine I mean