You can do that of course, but I dont recommend it unless you are sure that someone gained root access to your server and copied the password as you will have to reconfigure all services that use mysql. The password has to be stored in all files in cleartext and not as md5.
The services that you will have to reconfigure are:
dovecot or courier
saslauthd if you use courier