Mthfe gene / refined sugar does anyone know

Does anyone know how important it is to avoid refined sugar the months leading up to getting pregnant ? I’ve been told it could of contributed to my several losses.