Question: What happens if a Cardinal is named in pectore, and the pope dies?
Sentence: If a pope dies before revealing the identity of an in pectore cardinal, the cardinalate expires.
Answer in sentence: yes