The essence of constitutionalism in a democracy is not merely to shape and condition the nature of majorities, but also to stipulate that certain things are impermissible, no matter how large and fervent a majority might want them.
— George Will

The Supreme Court weighed in on that many 80 ago:
West Virginia State Board of Education v. Barnette

The very purpose of a Bill of Rights was to withdraw certain subjects from the vicissitudes of political controversy, to place them beyond the reach of majorities and officials, and to establish them as legal principles to be applied by the courts. One’s right to life, liberty, and property, to free speech, a free press, freedom of worship and assembly, and other fundamental rights may not be submitted to vote; they depend on the outcome of no elections.