Is it possible to assign many pins to one variable?

DDRx is used for direction. But the logic is inverse from PIC: writing 1 to a bit in DDRx makes the pin OUTPUT.