No, because sodium and chlorine have different chemical properties than table salt.
While sodium chloride (table salt) is safe to eat, elemental sodium is highly reactive and can be dangerous, reacting violently with water. Chlorine, in its elemental form, is a toxic gas and is also dangerous to humans. When sodium and chlorine combine to form sodium chloride, they undergo a chemical reaction that alters their properties, resulting in a safe compound. Therefore, Johnny is incorrect in assuming that sodium and chlorine are safe to eat based on the safety of sodium chloride.