Most definitely, although like AlanJohn said, go for something 97% or above, and make sure it dries quickly. I've cleaned many, many pieces of electronics with isopropyl alcohol (particularly console MOBOs, and controllers) without any adverse effects.
Working in a campsite, universal tv remotes get greasy over the season, and they end not working, been using alcohol to cleanse them internally for like, 10 years, and they still work like the first day.
It depends on the concentration, because if is less of 97% it will have so much water on it. The advantage of isopropyl alcohol is what leaves almost none residues and dry very fast. The ethylic alcohol takes a little bit longer to dry, if you wait enough for the alcohol dryes before put current on the electronic will be no issue at all. I did some time have to restore a computer main board using a pool (the Cl on it help to remove debriss inside the sockets). Obviously later I did have to clean using alcohol and a hair dryer to ensure no water on it before use.
My grandpa used paint thinner on his electronic repair shop