Is court used to mean the same thing in the next two sentences?

The court is now in session.

The noblemen visited the queen in her court.
different meanings