In most cases if will work without any issues, but make sure you have mysqldump before going for it. A simple rule of thumb is to make a test server, try it there and then go for live server.
cd /usr/local/directadmin/custombuild
./build set mariadb 10.3
./build set mysql_inst mariadb
./build set mysql_backup yes
./build update
./build mariadb