Communication from Arduino wifi shield to xbee shield

Hello everyone
I need make an home automation with arduino.
I would want insert in my project two arduino board

  • 1 board: main process like light automation, internet wifi (with new wifi shield)
  • 2 board : temperature sensor , display lcd touch screen, xbee (this to communicate to the other arduino board)

My question is, can first arduino communicate with internet router and second arduino?

Thank you!