so there are a couple of variables to that question. if the room has everything a cat needs then no. if it had food, water, a bed, stuff to keep it occupied, a litter box, sunlight, and some other form of life to keep it company then no it wouldn't be.
But if you locked it in a dark room without any of that stuff yes the cat would die