One engine bay washing school of thought is to disconnect the battery beforehand and then let it dry thoroughly before reconnecting. That should theoretically reduce the risk of anything electronic being damaged, although you still want to cover the alternator and distributor (if you’ve got one.) That obviously wouldn’t work at a you-spray-it car wash though!