Yes but the hair dryer dries the surface. The rice draws moisture out from inside the phone.
not true rice does not create lower pressure that would suck the moisture out it only absorbs whatever comes out with very slow evaporation. to speed up evaporation you need increased temperature not a bag of rice.