Yes, you can. The XBee shield utilizes the UART for communication (pins 0 and 1). The Ethernet shield uses SPI pins (11,12,13) plus two CS pins (4 for the SD Card, 10 for the Ethernet chip).
Keep in mind that you cannot program the Arduino while the XBee shield is plugged in and the UART is connected between the XBee and the Arduino, since it is shared with the USB Serial (assuming you are using an UNO).