Does that mean a Muslim has a right to vote for a representative who will impose Sharia law on the community?
We all have the right to representation in the making of law for our states, to say otherwise is dictatorial. I though highly doubt that Sharia law (stoning, burkas, etc ) is Constitutional so no it wouldnt be legal. In this case though there is no Constitutional impedance to making such a law as banning violent content to minors, the Justices are acting in an activist manner to say otherwise.
They would have the right to vote for whomever they wanted to, wouldn’t they? As for the representative imposing sharia law, they could try, but we still have a Constitution.