Yes. The Universities of California are funded by the taxpayers of California with their primary responsibility being to educate the residents of California. It is more difficult to get admitted as an international student. It is also more difficult to get admitted to engineering and computer science. These are very popular majors. UCLA and UCB are the most difficult of the Universities of California to get admitted to.
The Universities of California are also very expensive for out of state students. Financial aid is very rare. As an international student if you had gotten accepted you would almost certainly have been full pay.
There are a lot of universities in the US that have very good computer science programs.