Does "court" mean the same thing in these two sentences?

The king will visit the duke's court.

Pay court to the emperor.
different meanings