Yes, this arrangement is possible. Please take a look at HeatRecoveryElectricChiller.idf example file.