Muscle soreness means that you damaged muscle fibers. What that means regarding the quality of the workout depends mainly on what you do next. If you eat and sleep well following such a workout, you'll reap the benefits by supercompensating and growing muscle tissue. But if you drop the ball and go party instead of hitting the sack, you'll render the workout useless.