Yes, but WhatsApp is very finiky about restoring that backup when you're setting up a new device.
Due to this, I've resorted to backing up to drive without any media and then after restore, sync the media back via other means.
It's also worth mentioning that when you sync with drive, it doesn't preserve the time stamps of devices
As usual, root and sshfs make this all a lot more bearable. Alas, no online-banking or digital health insurance services, lol.