Below video shows neck exercised for before and after thyroid and parathyroid surgery.
Following surgery the range of movement, especially extension (tilting head backwards) will be limited.  

You should only do that exercise to the point when you feel tightness or pull in your scar and not more. With time the range of movement will increase, just be patient.