Yes. Inheritance and polymorphism are two different things.
Inheritance is when the attributes and methods of a class are
inherited by a deriving class that creates a more specialized
type.
Polymorphism is when two methods exist with the same name,
differing only in argument types, or in class type. The former
type, argument types, is an example of ad-hoc polymorphism that
does not even require a class.