external power for mega-ethernetshield

i'm using arduino mega 1280 connected with ethernet shield.. there are 16 pin occupied as input/output and i would like to use 12V 5A external switching power supply to run my devices is it ok ?