Yes disciplining does NO good unless you catch them in the act, unfortunately. Otherwise she'll think she's in trouble for being happy to see you home or something completely unrelated!

anyway yes, I strongly suggest crate training

Chances are likely she clawed up the carpet because she wanted out of the room. Maybe don't lock her in the room next time?

Also rubbing their nose in it does absolutely nothing as well. Like I said, unless you catch them in the act and discipline immediately after, they will have NO clue why they're in trouble