Yes.
An elevator sump pump can connect to either the storm or the sanitary system. How they do that is spelled out in the IPC.
Also, the piping should not be in the elevator equipment room. There is specific requirements for what is allowed in the elevator equipment room.