Yes. Pernicous anemia is caused by atrophic gastritis. Atrophic gastritis is associated with loss of gastric acid. Gastric acid is required for the absorption of inorganic iron, so patients with atrophic gastritis can also present with iron deficiency.
Learn more here.