Nuclear power plants can't be used for residential heating, residential cooking, chemistry, and industrial processes like making glass for solar panels.
At least not without changing the infrastructure for that completely. Which is not going to happen overnight. And even then it can't replace chemistry.
So, no, Germany couldn't have. No matter how many Internet armchair commenters repeat this.