Yes, zinc can prevent iron from rusting. This is the principle of galvanizing, but after the zinc corrodes, the iron begins to rust.