md5

If you md5 a string, such as

 md5($password) 

is it possible to submit that to a database, but still type in the regular $password to login? Let’s say $password = testing . Then you md5($password) and submit it to the database, would it be possible to still type in testing as a password?