That’s how it used to work, nowadays we use electricity to heat the metal to a point where it melts from the contact of the electrified rod that sends an arc of electricity supplied from the arc welding machine.
Source: https://doitprofessionally.wordpress.com/2018/05/14/all-you-need-to-know-about-arc-welding/