No, it is not recommended to keep your phone inside a bag of rice as some amount of debris can enter your phone through the small opening and cause more damage to your device.