How to read a port?!

I looked on their port manipulation page and from what I understand, you have to make the port an input:

DDRA = 0;

and then read the port

value = PORTA

Am I right?