Yeah this is pretty standard for PCB-type electronic (less so for eg LCDs, although it's worth a try if the alternative is throwing it in the trash). For best results use a small amount of baking soda in (only) the early washes if the spill is acidic (eg orange juice, coffee), and use distilled water, especially for the final rinse, to avoid any mineral residue.