Is Denmark the capital of Sweden?

No. Denmark is a country, not a city. It is a separate country to Sweden. They are neighbours. The capital of Sweden is Stockholm.