No the shock was from AC line voltage. Probably 220 volts.
If it was on an extension cord, then yes, that’s what did it. Should have still blown the breaker if there was one. In that sort of situation the breaker probably won’t save the person in the tub, just the people that have to fish them out later.