Question: When was the Federal District formed?
Sentence: After independence from Spain was achieved, the Federal District was created in 1824.
Answer in sentence: yes