Many PCBs have a large ground plane where most components connect to. In simple microcontroller circuits, this usually works well. But for complex and mixed analog/digital circuits, you need to think a bit more how to route your ground traces. If you want to design your own PCB, have a look at this tutorial document from Analog Devices.