Did the victory at Kokoda save Australia from invasion?

there are two possible answers to this question, its answers rely on individual opinions. Some say that the battle at Kokoda saved Australia from future invasion by showing the Japanese we would not back down and would fight for our country. The other answer was that the Japanese were not planning on attacking Australian territory because they were too involved with the Americans. They also believe it didn't save Australia but instead caused the loss of thousands of Australian soldiers.