XBee with ATmega328p

Quick question, Can you do ISP programming with an XBee connected to an ATmega328p? I know I have to disconnect the RX for FTDI, but what about ISP? Thanks in advance.