No, the electrodes in an electrolytic cell do not have fixed polarity like that of a battery. If we take an electrolytic cell consisting of the Ag electrodes and the AgNO3​  as electrolyte. When the battery is connected to it, the end to which the positive terminal of the battery is connected is the anode and the end to which the negative terminal is connected is the cathode.NO3−​ ions are deposited at the anode and Ag+  ions are deposited at the cathode. When the connection of the electrolytic cell is reversed, the polarities of the electrodes are also reversed.