I believe a compound, be definition, needs to be composed of different types of atoms, so it sounds like yeah, assuming the oxygen and hydrogen atoms are actually bonded together and not just floating randomly.
The answer is Yes because it is made up of Atoms, or 2 or more elements bonded together. In your case, oxygen and Hydrogen is bonded together. Thus, yes, this is a compound.