>>106468169
In older x86 models yes, but M1 macs and up you can't, because the memory is directly integrated into the CPU/GPU chip.
You have to buy the memory quantity you want from the get go, and pay the apple premium for that.