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