Welcome to the discussions!
No, you cannot buy the parts and assemble a Mac yourself.
The main reason for doing it in the PC world is so that you can hand pick parts as you really do not save a ton of money like you used to by building your own PC. Macs are different in that one company controls the hardware and software and as such, there are many fewer options on hardware, eliminating the advantage.