Yes you can. Each Pokemon play's by it's own ability, so each Magnezone will work according to what they have. For the abilities Sturdy and Analytic, it will only apply to the ability-bearer. For the ability Magnet Pull, you only really need one to have the effect on the battle field.
Hope I helped! :)