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

The ballet dancer walked with a graceful attitude.

He assumed an attitude of surrender.
the same meaning