Yep. Judges have a lot of leeway in how they rule in a case. Thus what we have now is judges effectively making law by determining which laws to uphold and which to ignore. This is not how it's supposed to work. And judges cannot be prosecuted for decisions they made on the bench. Thus they are a special protected class and their protection has been abused for decades.