ARduino input power connections

is it ok that i power the arduino uno with a 12V 2A dc adapter and AT the same time plug it into the Pc with my usb port ?
tnx !

Yes the arduino automatically switches where the power is coming from.