Xbee communication

Is it possible for xbees to send and receive data on one xbee?

For example
I’m making a robot that sends data from my robot to the computer like light reading, temperature, humidity etc… It will be controlled by a program I wrote on the computer. I want the computer to be able to control the robot via xbee and the robot to send back data to the computer. I have two arduinos.

Thank you

Bi-directional data transfer between two XBees is absolutely possible.