they are correct. They are families. You can attach various functional groups (ester, alcohol, acid, amine, alkyl, carboxyl etc) to the cores as shown. That's what organic chemistry students do. They study how to make the compounds efficiently given the chemical formula and structure.