It definitely has. But the current issues seem to be more due to a number of other factors.
During the pandemic, pretty much every German car manufacturer tried to more or less get rid of their lower priced models and focus on the high end market to increase margins. As far as I know, this was largely driven by supply chain issues and shortages making lower priced models financially less attractive for the car manufacturers. VW is not a luxury brand so they suffered from this more than other German manufacturers. With inflation and recent world market developments (the Chinese levelling up their car manufacturing), this situation has only got worse.
But the most important factor may yet be electrification. VW doesn't have an edge in electric cars and their product lines (the ID3, 4 etc.) are not really competitive. They also failed to vertically integrate. German car manufacturing still is largely a supply chain coordination game, making it hard to innovate quickly.
Last but not least, I guess the current insane energy policies and quite literally cooling economic environment in Germany don't really help as well.