A cervical collar is a brace, and the wording around when one is used is full of hedges that are worth reading slowly.
When the source mentions one
Spine-health ties the collar to trauma. For a trauma, such as whiplash , a hard brace or cervical collar may be prescribed. There is mixed evidence about the effectiveness of neck bracing and support, but it is noninvasive and for short periods many people and doctors find it helps reduce pain.
The hedges in that passage
Four phrases limit the claim. The collar "may be prescribed", so it is a possibility and not a standard step. The evidence is described as "mixed". The benefit applies "for short periods". And the people reporting relief are "many people and doctors", not everyone.
The trauma example named is whiplash. For comparing how that injury is described elsewhere, there is a page on Whiplash from the NHS.
The question to take to your visit
Whether a collar is prescribed is a decision for the clinician who has examined your neck. Aurora readers can bring the phrase "for short periods" to that visit and ask how long is meant in their case.
For other descriptions of neck problems, see Spine-Health on Cervical Herniated Disc Symptoms and Treatment Options, OrthoInfo on Cervical Radiculopathy (Pinched Nerve) and a Cleveland hospital's page Neck Pain: 6 Common Causes and Treatments. Home options are covered at What can I do to relieve neck pain at home?