Yes, go to Settings → Discussion and check Users must be registered and logged in to comment.