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

He said that architecture is the art of wasting space beautifully.

How great thou art!
different meanings