If you own single-family or multi-family property in California you can legally build an ADU, however you will have to local ordinance requirements.