Engine Bay Cleaning help!

Last time I sprayed mine with high pressure washer, Engine Light came on. I had to let it dry up for 10 mins then it was fine. I think the problem was water inside the spark plug wire holes and inside the distributor.