Yes!!!!! In fact, Americans wrote the Japanese Constitution. But they were also sensitive to the history of Japan. There is overwhelming evidence that the US government chose to whitewash the Emperor's involvement in war crimes so that they could get the reforms the people to accept the reforms they wanted. For instance, when they gave women legal rights (women didn't have ANY legal rights under the Meiji Constitution), the Japanese leadership just about had a hissy-fit, but MacArthur pushed it through anyway. Notably, the original MacArthur driven constitution had a unicameral legislature, but that was changed by the Japanese to bicameral. I do want to point out that the Americans gave the Japanese cabinet to the Emperor the opportunity to write their own Constitution, but they keep submitting glossed over version of the Meiji Constitution, so finally MacArthur just told his team to write a version.
Germany was a very different story. First, one has to consider how Germany was influenced by the Marshall Plan. Without it, one has to wonder how many Europeans might have starved to death. So, for Germans saw America as a life-line. America was also seen as their safety from the Soviets. But Germany, in 1948 (when the process for writing the Constituion) was being governed by a coalition of the Americans, British, and French. Germany's old Weinmar Constitution had also functioned until the rise of Nazism, so it became the starting point for their new Constitution. But there is considerable influence from America in there, because Germans wanted change that was meaningful.
America post-WW2 had bigger fish to fry than micro-manage other countries. We were on a collision course with Communism. Today, it is hard to recall just how dangerous Communism was. America also was sensitive to not being a bully. It's interesting that there seems to have been a conscious choice not to create an Empire by taking over these countries, but instead recreating them into what would become significant allies.