On its own? Sure. (Although to be fair to Spain, they've invested heavily in solar and high-value agriculture in recent years).
But seen as part of a system with Germany and perhaps the UK (no longer part of the EU, but was better for both when they were), it's a valuable part of quality-of-life in the overall economic bloc.
Where would you rather live? Spain, easy.
Who would win in a war? Russia, easy.
Some will read this as an argument against the Spanish lifestyle. On balance I prefer to read it as an argument against war.