It depends on the size of the cage. As long as she has enough room to walk around a bit, use the litter box, and even play sometimes, she should be fine. Cats normally sleep up to sixteen hours a day so she likely spends much of your school time dozing. It’s great that you have created a routine she can depend on and seems to enjoy. And keeping her from shredding property also goes a long way toward preserving your happy, loving bond.