If Catholics violated a pope’s teaching, are they really Catholic?

The main differ between protestants and catholics is: catholics are led by a pope, that 'reigns'. So if a catholic disobeyed pope , are they really catholics? For example avoiding pregnancy. Pope taught forbidden to use all those evil methods! so if a couple did use any of them , they are not really led by pope so are they really catholic? Sure they pray to Mary, but the main thing, they don't obey pope! how are they catholic?

Updates
2 mo
Similarly i know islam allows abortions until 17 weeks. Ilhan Omar believe after 17 week is a sin like stealing. But she said (like latifa and tlaib) vote for me so i can protect your right to steal, what i consider a sin? https://ilhanomar.com/issue/reproductive-freedom/ clearly she doesn't really believe in islam or she would avoid politics.
If Catholics violated a pope’s teaching, are they really Catholic?
Post Opinion