Only if its a genuine official Apple charger or a leading brand compatible replacement. The cheap clones are dangerous (fire and shock risk) + have a lot of switching hash and ripple on their output and poor regulation.
See
http://www.righto.com/2014/05/a-look...rs-pricey.html