Changing major after Transfer to UC from Community college

Hi, I am currently attending community college and I saw many of my friends planned to transfer to less popular major and change the major to what they really want to study. For that reason, I want to do the same thing as well, but I wanna know whether it’s really possible. So, I am currently cs major and is it possible to transfer as Math related major to UCLA and change my major to CS or CS and Engineering major? Thanks :slight_smile: