Yes, rust inhibitor sprays form a protective barrier that prevents moisture from directly contacting the metal surface, reducing the risk of rust formation.