Comments - Moving MariaDB User Accounts from a 10.2 Windows Server to 10.11.5 Windows Servers
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.
Mostly likely it would work. But I suggest to try and see. You're skipping many major versions with this upgrade, this is not a scenario that is tested sufficiently well.
You would still have to fix up the data directory with mysql_upgrade afterwards, if you're doing it like this.