Hello,
Thank you for asking the query.
No, this is not cancer or anything dangerous. These are lymph node in the neck, which get enlarged by the inflammation due to the infection. This is a normal body response which will filter the virus/ bacteria.
The swelling will disappear in a couple of days.
Hope this help. Thank you.