Should I continue to exercise even tho my shoulder hurts?

Musculoskeletal pain. Would not try to work through shoulder pain, as it will probably just worsen. Need to let the injury heal and avoid shoulder exercise until it feels better.