As explained earlier, sand doesn't prevent fungus gnats issues. You should only use sand if the soil lacks drainage quality.