Inter-UC Transfer Question for Successful Transfers!

Hi, sorry for piggybacking off the thread, but I’m planning on transferring UC-UC. Some of my major pre-reqs tend to fill up before I can even get the chance to enroll. Can I take the course at a local community college instead? How about online?