Generally speaking I'd advise against in-place upgrades, and to backup all your DirectAdmin accounts to an off-site server, and then reinstall your operating system with Debian 10 or 11, and finally, restore the accounts.
Whilst technically speaking, in-place upgrades "work", I just find in order to minimize the chance of bugs, a clean install is better. From a security perspective, a clean install isn't bad practice either.