It highly depends on the design of the judicial system. As individual people obviously everyone has political opinions, but you can shield the judicial system from being
politized. Systems like in Israel where judges or judicial committees have a major say in appointment of judges removes a lot of politics from the equation.
That's how the Prussian/German bureaucracy was designed too. Lifetime civil service and merit based selection basically means the bureaucracy manages itself removed from the political process. The US system is extremely personalized with elections and appointments so it's uniquely nepotistic in a lot of ways.