Yes, the German Pension is based on working periods within the current borders of Germany both during and/or after the war. The minimum qualifying period required depends on the current pension agreement between Germany and your country of residence.