The wheels should be fine.
Brakes might drag if the rotor spacing tolerance is different enough between the wheels. Fix for this on hydraulic is to push the pistons around, on cable it's dialing in the adjusters.
You need to set up frames and rotors for matching rotor sizes if they are not already.
Same goes for cassettes. Derailleur might need adjustment
The frames may take different thru axle length or threading
__________________
Genesis 49:16-17
"Well, well!" said Holmes, impatiently. "A good cyclist does not need a high road. The moor is intersected with paths and the moon is at the full."