In most cases, when two elements form a compound, the new compound has a set of chemical properties that are entirely different from its reactants. However, in the case of diatomic compounds, such as O2, then yes, the compound retains the properties of its elemental parts.