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

Strike 'z' on the keyboard.

The pianist strikes a middle C.
the same meaning