Maintaining a proper posture can help heal a herniated disc faster. Good posture also prevents herniated discs, especially when bad posture can cause the deeper degradation of the intervertebral discs that cushion the spinal column.
Having good posture would also prevent deeper inflammation and damage to the spinal column.
Make sure you maintain good posture when working in front of a computer or when weightlifting.