In theory, perhaps. In practice it doesn’t work too well if you want to believe the internet (and my personal experience).
ADB backup is officially deprecated for a long time now.
If the adb command you use is halfway recent it should have displayed a message accordingly.
https://www.xda-developers.com/adb-backup-and-restore-depreciated/
It’s no way forward anyhow …