sure, that's possible.
the cascade classifier just finds, what the cascade-file was trained on, be it faces, eyes or soda-cans.
lots of existing examples here , and ofc, you can train your own, opencv comes with tools for that ( cascade_training, haar_training )