Assuming they're both regulated 12V PSUs and have the correct polarity on the plug then they both should be fine