Nearly all are, and it should be automatic. There’s a short list of devices that are not routers here:
Mains powered Zigbee devices that aren't routers
If you already have a device, the ZHA integration should tell you.
There’s probably something similar in Z2M.