Yes, vinegar can keep ants away. The strong smell of vinegar repels ants, so they will avoid areas that are sprayed with it. Vinegar is also a natural disinfectant, so it can help to clean surfaces that ants have been crawling on.