True. Agreements between them, including the the Ribbentrop-Molotov Pact provided for Hitler and Stalin splitting up Poland on the Bug River line, gave Stalin a free hand to take over the Baltic States, and kept Germany neutral in the Soviet designs on Finland. Many German military memoirs I've read from German soldiers and officers participating in Operation Barbarossa remarked on the massive array of military installations, forces, and war materiel lined up in the western portions of the USSR, all of them concluded from what they saw that Stalin had intended to use the agreement to rebuild the Red Army after the 1937 purges and then spring a surprise attack on Germany, which didn't happen because Hitler jumped a year before Stalin was ready to betray the Pact on his own end.