It depends on the UC and their departmental rules. At the UC I went to, yes you could enroll freely however, some of the classes you got last priority on and some you would just not be able to enroll in unless you were in the dept of biological sciences. As suggested above, the registrar/counselors of the depts. should be able to tell you the correct info.