For your purposes, yes, you can swap out the logic board to check it out. On the iPhone X you'll find that the Face ID won't be functional with the new logic board and True Tone on the display will be disabled, but pretty much everything else should work and can be tested.
Once you put the original logic board back in, the original phone will go back to normal with no ill effects.