Yeast infection

Is it safe to use a 3 day yeast infection treatment cream while pregnant or do I absolutely have to use the 7 day one ??