No. Space docks and PDS are structures, so they do not count against capacity.
Capacity limits fighters and ground forces in a system's space area. Ordinary structures are not transported and do not count against that limit. Some space docks have a printed capacity value or an ability that lets nearby fighters ignore capacity; check the unit card.
LRR v2.0 (base game / Prophecy of Kings); specific card abilities may override the general rule.