Not in my understanding: it is
group A believes in X
group B believes in Y
What the parent poster seemed to imply was
group A believes in not Y.
Or a more concrete example of today, many people today define themself by being anti green, anti progressive, anti woke, antifashist etc. but often struggle to define what they are standing for.