Yes, but I have heard before from Catholics that the Church is under the protection of the Holy Ghost and that God would not allow any harm to come to it. Nevermind the corruption of Popes with their “natural sons” or “Papal nephews”, nevermind the schisms when there were two Popes, nevermind the times the Pope had to flee Rome, nevermind when the King of France had the Pope assassinated and had a puppet Pope appointed, nevermind when the Pope took the field of battle only to be routed.
God offers sanctuary for your soul, he promises no protection for the body, or even the “body” of the Church from corruption or assassination or conquest.
The Pope is the leader of the Church, not the Church. What happens to a Pope happens to a Pope, it is not happening to the Church.