what are molecules of an element and molecules of a compound? Are they the same thing?
Molecules are compounds of more then 1 atom.
Elements like already mentioned can exists as molecules like all the gas elements H
2, N
2,O
2, halogens and some others like S
8, P
4, etc.
Compounds contain different elements.
From molecules is spoken also if you non metal compounds, like water carbon dioxide, etc. If you have for example sodium chloride NaCl we don't talk about a molecule even it is. Its a salt compound.