Both can exist under D&D rules.

Conformity to a community standard is a lawful trait, as is mandating that others also conform. If such conformity is intended to benefit everyone and refusal to conform reduces the benefit available to all, then it is also good. If a member of the community flees, not only does this take away the benefit he provided to the community but it takes away the benefits the community provides him, and thus it is necessary that the confused one be brought back so he can be reeducated and learn to love his place in the community.

Freedom, even of thought, is a chaotic trait.

Paladin A, motivated by the idea that the good of the many is the highest goal, is justified in imposing conformity upon all.