You cannot generally upgrade the CPU or graphics card of a laptop. Most laptops running windows allow you to upgrade other components like RAM, WiFi cards, Storage and swap out batteries pretty easily. Older MacBooks were capable of this too but that is no longer the case. Now everything is soldered onboard and you always have to have that at the back of your mind when purchasing a MacBook.
Research and get the most suitable configuration that works best for you because you can't upgrade anything down the road