Generally yes. It's called polymorphism and is a key property of Object Oriented Programming and Design.