Since everything about the valve (solenoid, wire splices, etc) should be sealed and water proof, it is fine for the irrigation box to be flooded.
Actually, irrigation valves, can be installed directly underground without even being located in a valve box. But to allow for maintenence, you would never want to really bury an irrigation valve.