Xbee configuration

is that I can switch the different mode of use of the XBee (Rotor, cordinateur and END POINT) at the heart of the execution of the main program via the AT command ??
THX