It is probably true that certain belief systems are more likely to end in this sort of thinking than others (certain forms of religion, for example, or more extreme forms of socialism such as Marxism) but it is possible to become a dogmatic zealot with pretty much any belief you hold.