It was entirely in Germany's right to build a navy, yes. They needed one to help protect their trade and defend against the French and Russians. At the start of 1914, the German navy was barely bigger than the French and Russian fleets combined.
Given that the consensus on this site is that...