Yes, Gort is actually a cop:
"There must be security for all -- or no one is secure... This does not mean giving up any freedom except the freedom to act irresponsibly. Your ancestors knew this when they made laws to govern themselves -- and hired policemen to enforce them. We of the other planets have long accepted this principle. We have an organization for the mutual protection of all planets -- and for the complete elimination of aggression. A sort of United Nations on the Planetary level... The test of any such higher authority, of course, is the police force that supports it. For our policemen, we created a race of robots-- Their function is to patrol the planets -- in space ships like this one -- and preserve the peace. In matters of aggression we have given them absolute power over us. At the first sign of violence they act automatically against the aggressor. And the penalty for provoking their action is too terrible to risk."