No. The papal election is not infallible. Its a canonical election just as when an abott is elected in a monastery. But, the pope cannot cease to be a pope just because of material heresy. Legally, the cardinals in the church have to recognize the pope for the pope to have his office.we have a classical state of legal and illicitness here. Legally in a sense he is pope, but he should not be.