When using System Center 2012 R2, do we need to license the management server and the end devices that are being managed?

No, you just need to ensure you have sufficient licenses for the end devices you are managing (clients + servers). The management server itself does not require a license.

Source: System Center 2012 R2 Licensing Guide