A sling is designed to support your arm in a position of rest. It's used for injuries of the hand, forearm, upper arm, and shoulder.
A shoulder that is immobilized too long can become stiff and lose range of motion. Your elbow can also get stiff. Follow up with your health care provider as advised and don't use the sling longer than directed.