Can I take the 135-hour CA real estate license course online?

Yes, you can certainly take the 135-hours of required education online.
The DRE approves both online and in-person courses.
Most students actually prefer to take the courses online, as it allows them to complete the courses at their own pace.
In addition, online courses are typically more affordable than in-person classes.