Can a compound only contain one kind of atom?
By definition a compound is composed of two or more different elements chemically bonded, which is same as saying more than one kind of atom.
Examples of compounds:
Examples of molecules that are not compounds but contain more than one atom, each of which is the same kind of atom. These are diatomic elements.