Yes but in some cases, astronomy uses slightly different definitions of key scientific terms: "metal", for example, means anything other than hydrogen or helium.
So: there are many things that are neither hydrogen nor helium nor metal, and a few things which are both hydrogen and metal.