I hope this is a serious question, obviously this depends on your baseline.
In 2013 Germany had a 56% share of fossil fuels, 27% share of renewables and 17% share of nuclear power generation.
In the current year, the shares are: 59% renewables, 39% fossil fuels and 2% nuclear power generation.
So in the last ten years there has been a switch in generation from both nuclear and fossil fuels to renewable generation.
Could it have been better in the wake of the looming crisis of both climate and energy? Yes, I think it would have been better to keep some newer nuclear power plants running. But Cpt. Hindsight always has it easier.
In the long run every successful economy will generate its major share of electricity from renewables. Some countries will choose to generate a part with nuclear, others will choose to use a mix of hydrogen, batteries etc. to complement renewables. We will see what works best.