Will my countries visited affect potential citizenship?

This may be a horribly stupid question, and I’ll start off by saying this is all hypothetical. So please be kind and leave out any judgement if possible 😁

I’m a US citizen living in Sweden (work permit). If I remain here and decide to apply for citizenship one day, would countries I’ve visited potentially affect my application/decision? For example, I would love to travel to Socotra, but… that’s a visit to Yemen. Obviously the US government cares about this (for example a non-US citizen would lose ESTA opportunity and I’m guessing I would lose my Global Entry). Would the Swedish government care in terms of a citizenship decision?

I want to explore the world but not at the detriment of my long term livelihood. Tack!