Can health anxiety make you feel like you have swollen glands in your neck when you don't? Or could it just be sore neck muscles?

Yes. You can feel a throat constriction or globus sensation from anxiety. You can have a sore neck from non-cancer lymph nodes (eg a viral throat infection or bacterial such as strep throat) or from muscle strains.