Engine bay of modern cars contain sensitive electronics and therefore need care while cleaning. However, car owners across the world are washing and cleaning their car engine bays... obviously with care and caution.
You CAN wash and clean your car's engine bay. Just search 'how to clean enigine bay' both on Pakwheels as well on google. You'll find very useful tips and guidlines.
I have 2010 Civic Oriel, and have washed its engine bay three times during past 10 months. Followed the instructions very carefully. Don't have a single issue at all. Even after almost an year, my engine bay looks like almost brand new!
Good luck!