Welcome to HealthcareMagic.
Firstly it is highly unlikely to be cancer. Where exactly do you have the swelling ? If it is inside your throat dont worry about it but get it checked with your Doctor.
If you have a swelling at the back of your neck , it probably could be a lymph