MagSafe 2 Charger for MacBook (Eastbourne BN21)

Has anyone please got a MagSafe 2 charger for a MacBook? Ours has stopped working. Google suggests that a charger for any MacBook made between 2012 and 2017 will work fine. Thanks.