Yes, Germany and Japan were allies during World War II. They, along with Italy, formed the Axis Powers. The Tripartite Pact, signed in September 1940, solidified their alliance against the Allied Powers.