It's technically possible, but they don't seem to have a tonne of parts available, especially for the new models (2016 onwards). Also, pretty much every component is soldered to the logic board (memory, ssd) with a few small exceptions, and the computers can be more difficult to open.
And there are detailed guides from iFixit about how exactly to do it.