Look, you can do that, but in my experience over the last two decades of backing up using TimeMachine, remote backups become corrupted and this is still an unresolved issue in 2024. Additionally, you will need to configure your SMBv3 very carefully if you want any support from Apple to resolve...