Rasperry Pi Out to XBEE In
Yes you can and I'm assuming that they are both using the same supply power or if not they are, within reason, both at 3.3V with common 0V line.

As a matter of interest on my part, what are you doing to ensure random spectral noise doesn't cause a "relay activate" command.