Does the word "judge" have the same definition in the next two sentences?

The judge tried both father and son in separate trials.

The judge pronounced often before, but never so widely press-attended.
the same meaning