Does solving puzzles really sharpen your mind?

I love doing puzzles when I have downtime, but I’m curious do they actually help build mental stamina, or are they just a fun distraction? Anyone notice a real difference in focus or problem-solving skills?