Yes, but you'd have to execute it as the correct user as well. That user needs the permission to access Influx' data files.
However, I'm not sure how the backups are created in newer versions, maybe that's no longer valid, if backups are done by the Influx service.
Offline backups seem to be deprecated, so it should be working.