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

The golfer asked for an official who could give him a ruling.

In most soccer games there are three officials: the referee and two linesmen.
the same meaning