Yes and we need tools to route around stupidity to keep checks and balances on stupidity. Otherwise locked-in stupidity can get even more stupid and that’s how suffering occur at scale.
If you don't like the law, lobby politicians to change it.
You don't get to decide that speed limits are stupid and go 100. You don't get to decide that taxes are stupid and not pay them. You don't get to decide that rules against murder are stupid and ignore them.
> You don't get to decide what to put into your body and smoke weed. You don't get to make a choice about your pregnancy and have an abortion. You don't get to not be a chattel slave in 1840.