You can work out if you're sore. Don't exercise the same muscle groups that are hurting. Do legs one day and exercise your upper body the next. By doing so, you'll still be able to get exercise and allow your lower body to recover and rebuild.