Arduino Detach ability

Hey Guys, I have just started programming Arduino.I just wanted to know that can we program the ATMEGA328 microcontroller using the Arduino Uno R3 Board and then detach the microcontroller and use it elsewhere?

Yes