powering atmega168 from usb 5v

i have an atmega 168 i want to use inside and xbox cotnroller and power with the 5v usb can i just connect it directly?

Yes.

alright thanks