Yep. What tanstaafl said.

Just make sure the supply outputs DC and not AC and that the center connector in the plug is positive.