Any Magsafe on any Apple laptop is fine, Magsafe has only 1 pinout and voltage. The differences are all in connector form factor and current capacity of the charger. Considering those are the same too (straight connector, 85w) I'd say yes, it will work flawlessly.