Here comes noob question.

Let's say I have class called TSprite. Now I make child class TAnimatedSprite that inherits from TSprite. Can I use objects of class TAnimatedSprite in functions that ask for TSprite object to be passed?