Most goiters aren’t connected to cancer, but some types of thyroid cancer do cause the gland to swell and form a goiter. These include anaplastic thyroid cancer and lymphoma, which may need to be diagnosed via a biopsy.