No. Floating Factories do not count against capacity; they have their own capacity value.
Capacity limits the combined number of fighters and ground forces in a system's space area. A Floating Factory is a structure, not a fighter or ground force, so it does not itself count against capacity. The unit has a printed capacity value, which it can use to transport fighters and ground forces.
LRR v2.0 (base game / Prophecy of Kings). Thunder's Edge and Twilight's Fall Floating Factories use the same unit type and wording. Specific card abilities may override the general rule.