Is there a replaceable capacitor in a MacBook?
https://www.ifixit.com/News/62674/m2-macbook-air-teardown-ap...
https://www.ifixit.com/News/62674/m2-macbook-air-teardown-ap...
https://valkyrie.cdn.ifixit.com/media/2022/07/18205803/MBA_M...
But if you go to an Apple-certified shop they'll just swap out the entire board and call it a day. In Apple's mind those are not replaceable. In their repair system Apple treats a MacBook as a collection of maybe 20 parts and a bunch of screws.
My friend and I both sent our MacBooks into Louis Rossmann the same week. He spilled a cup of water on his, mine just killed itself for no reason. The repairs were expensive but they managed to not lose any data, and it still saved us many hundreds of dollars each vs. doing an Apple-authorized repair.