You can try it... but the general advice is to use what is shipped. Frequently there are incompatibilities that rear up due to the fact some coding processes may be specific to the supported version.
It's like you can use PHP 8.1 and PHP 8.2 with XF... but errors may show up since it's only currently supported on PHP 8.0.xx.