Xbee RF modules

Hi, I'm going to do a Cansat but our proffesor told us to get a specific xbee model. He told us to look if other xbee modules (lower cost , less range) could work with the code he will give us. Do you know if all xbee modules have the same communication protocol or does something have to be changed in code?

Do you know if all xbee modules have the same communication protocol or does something have to be changed in code?

No, they do not. Maybe. Depends on the code. The great thing about XBees is that they replace wires, so nothing should need to change. But, if you are using the XBee library, so you can use API mode, then changing which radio you send from and which you send to could require changing the addresses in the code.