I found that quite annoying too when I had less than 20 posts. It doesn't prevent spammers 100% but I guess it lessens them
Of course it will be no perfect ways to prevent spammers 100%. We will never find out effective ways with 100% accuracy since spammers also become smarter every time. But in my view, for now, the way is quite good to minimize the number of spammers.