Polymorphism describes a pattern in object oriented programming in which classes have different functionality while sharing a common interface.
If you, like in your example, have a base class with a virtual method and override it in one or more subclasses, you have a common interface with different implementations. The answer should be yes, it is polymorphism. And if you do not override the base class implementation, it is "just" inheritance.