Yes, all the XBee modules need to pass data in one direction is VCC, GND and Data in one one side and Data out on the other.