I’ve pulled Linux boot drives out of one machine to stick them in a very different machine (e.g. from a 6th gen Intel i7 with an AMD GPU to an AMD 5950X with an NVIDIA GPU) and they almost always just work or require only minor tweaks. Chances are it will be fine.