No, they can’t. That is why it is not possible…
When you connect it to an Aqara hub, it looses connection to Homey.
After updating you have to connect it as a new device to Homey again.
That means you will have to repair all flows that the device is in, although the excellent script of @martijnpoppen can help you out there: