If a little water backs up into a gas valve, is it likely hosed?

My Rinnai R94LSi suffered a minor flood of water flowing through it for a short period of time when our sewer stopped up and water...