Yes, both in WW1 and WW2
WW1 the Germans wanted to finish up the Western Side as quickly as possible so they can use their full man force to fight the superior size of the Soviet Army.
WW2, the Germans made an alliance with the Soviets in the beginning so that they didnt have to fight them during that time It was only after Dunkirk did they decide to fight USSR