How to run CQ from a remote host

Hello, need a help on influxdb continuous queries. We are planning store downsampled data on separate host. Say example we have host A and host B, the influxdb running on host A and we wanted to run the continuous queries on host B and the store the downsampled data on the same host itself. Is it possible to run CQ on host B by accessing data in host A?