The short answer is, “Yes.”
However, it’s not very common. While several apartment units might share a single large septic tank, they still each need enough lateral lines to treat their effluent. So, a single apartment building would need several acres of leach field. An apartment complex would need to devote over half the land to wastewater treatment.
Advanced wastewater systems are a better option for apartments outside the reach of sanitary sewers. Because they treat septic effluent in a biological reactor rather than in the ground, they can reduce the acreage needed for disposal.
Here’s an example of apartment complex wastewater treatment that works :

Here’s the satellite view for scale:

If you’re making plans to develop property into apartments, give us a call. We can help you make the most of the space.