Does word "price" have the same meaning in the following two sentences?

The price of success is hard work.

What price glory?
the same meaning