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

The manager had only four starting pitchers in his rotation.

The medical resident finished a two-week rotation in pediatrics and began one in orthopaedics.
the same meaning