Sure no problem.
If it helps you in any way, I've taken apart keyboards that have the same issue and placed them in the top rack of the dishwasher. Let it go through a cycle and dry out. Usually, they come out as good as new!
A mouse might work the same way, but I haven't tried yet. Just make sure you don't put the actual control board in there, only the plastic parts!