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

They serve a restricted role on the bench.

He had served in financial planning positions.
the same meaning