As long as it is an unmodified macOS Mojave (10.14) everything is even officially supported.
Anything lower than Mojave probably doesn't work, because the Late 2018 Mac mini was originally released with 10.14.
Anything higher than Mojave requires OC on the MP5,1 but as long as there were no root patches applied, it should still "unofficially" work without problems.
If possible, create a clone just in case.