You don't want to be seen as unprofessional and too relaxed. If you work in a more relaxed environment, where people don't have to wear suits every day, then you can probably get away with wearing ripped jeans. But if you're not sure, ask your boss, manager, colleagues, or HR for their opinion first.