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

Strike 'z' on the keyboard.

Her comments struck a sour note.
the same meaning