Yes.  And totally impartial courts are a key to this.    This judge, at best, showed incredibly poor judgement by bringing his personal biases out on full display in a court of law over which HE was supposed to be presiding.