It depends on the condition you're treating. Make sure to check with a doctor for an appropriate length of time to wear a brace.
Consistently wearing a brace for more than a few hours a day, unless advised by your doctor, could be counterproductive because it begins to weaken your muscles. That could lead to a higher risk of injury.