These exercises are designed to relax and strengthen the neck muscles and can be helpful in improving the overall health of the cervical spine. However, before starting any exercise, especially if you have any existing health problems, it is important to consult with your doctor or physical therapist to ensure that the exercise is suitable for you and will not cause harm.
If you have no medical contraindications and feel that these exercises may help you relax or strengthen your neck muscles, follow the instructions you provide. The exercises you describe can help relieve neck tension and improve flexibility. But it is important to perform them carefully and without excessive tension to avoid injury.
If you experience pain or discomfort during exercise, stop immediately and consult your doctor.