You have to get evaluated for diabetes, as it is the most important causative factor for Candida infection, even in pregnancy. Ruling out this factor will prevent recurrences of infection, as well as other fetal problems which may develop if diabetes is present. If there is a positive family history, then a repeat test maybe necessary even after fifth month of pregnancy.