Can analog pins be used as a digital output pin?

Also, if I power the arduino Uno with 9V battery and the jack, can I use the 5V regulated pin to power components like LED?