Yeast rash on my 7 month old baby girl

It’s ok to use lotrimin for her rash? She has white substance build up on her vagina lips and it’s red.. it’s just for the meantime until her dr appointment.