May be an abscess, infection, swollen lymph node. Either way, yes, you should have the Vet check it. May have to be lanced and the dog given antibiotics.
You can try that, but I don't think it will work on an abcess (those need to be drained). See your vet for the best treatment. - Blu