Using lotrimin on baby

My 6 week old daughter has a yeast infection and I’ve been recommended to use lotrimin on her. Has anyone done this? Will it actually help?