Can I encode the apartments using stairway panels?

No, the internal devices must be encoded exclusively from the Master panel. For this reason, if you have more than one entrance panel in a system, the first thing to do is to make the stairway or parallel panels slaves.