You are right on the money. Starting a startup while working for Google would be an absolute non-starter. Any code you write, they own (within certain restrictions that end up being so broad as not to matter.) And moonlighting in a business that competes with Google would be grounds for termination.