Xbee Shield to Arduino board

Okay, so if i got pins 0 and 1 to communicate with arduino. The rest of the pins can be programmed in some other stuffs? Because i'm planning to program a somewhat like buttons to the remaining digital pins.