yes. if it works with usb power, but not from any other power the voltage regulator on the mega 2560 is damaged.
Barrel plug also will not work, also goes into voltage regular
Most common cause for this is shorting +5 to gnd, normally threw the endstops. This burns out the voltage regulator