they aren’t locked down for parts like the phones but some major parts have issues. swapping the lcd on the m1 and m2 MacBooks will result in strange artifacts because the backlight needs to be recalibrated to the new computer. This is only possible if you buy the replacement lcd via apple as this will give you access to their system configurator tool. If you harvest an lcd from a dead/locked unit there is no way to access the tool and recalibrate the backlight, so the artifacting remains forever.
Swapping the logic board can also cause this issue. Additionally Touch ID is paired to the logic board so if you change one without the other that won’t work anymore.
Not sure if there are other paired parts or limitations like that, I’ve only done 2 of the lcd repairs and have only read about the Touch ID pairing (which isn’t a surprise)