That doesn't stop someone from using your code to build a compelling competitor product. It just means you need to pay more lawyers to argue about whether the AGPL was violated or not and maybe win a lawsuit.
But the added value of the company is perfect execution of the idea, not juste the idea. The code being open source only means other people can try to be better, but it shouldn't be the number one issue.