Magnesium chloride is the product of a reaction between magnesium and chlorine

Correct. When magnesium reacts with chlorine, they form magnesium chloride. The balanced chemical equation for this reaction is:

2 Mg + Cl2 -> 2 MgCl2