Is the word "ball" used in the same way in the following two sentences?

The ball travelled 90 mph on his serve.

The mayor threw out the first ball.
the same meaning