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

A hard theory to put into practice.

It is not the local practice to wear shorts to dinner.
different meanings