RFID door access using ARDUINO MEGA 2560 w/ XBEE RF MODULE and RTC

I want to make a door access security using arduino mega 2560 w/ xbee rf module and rtc. i want to know if it is possible to connect the xbee rf module to the mega 2560 and also the rtc.