Absolutely. Google must realize that its supremacy in search/ads will eventually come to an end, so they're making a really smart, long-term investment here.
Self-driving cars would be awesomely useful, and Google has exactly the right resources (top AI engineers) to make this happen.
One day, we'll all likely have cars with AI powered by Google.