Asked and answered all the time. The answer is yes, but not a very good
idea. Whatever the button does can just be done some other way and bypass
the password. Also, it is easy to find your password.
Do a search and read the many many previous posts on the topic.