The anode and cathode when corrosion happens
You are right! What you have written is an example of Galvanic corrosion (Galvanic corrosion occurs when two different metals have physical or electrical contact with each other and are immersed in a common electrolyte).
You have  successfully described Galvanic corrosion and given an example of it