Yup! If the sub-panel is outside of the apartment, then it doesn’t need a ground rod with wirings. And, you don’t have to use a ground rod if the sub-panel is placed inside the apartment. Only the wiring is required.