Signup Code modification – allow account creation but code for blog

Hi !

Well all in the title.

In fact i need something that can allow user to create an account, but not a blog. If they want to open a blog then they have to set the signup code. is therre a way to do that ?