Yes, ADU law allows detached units to be constructed in any yard area, including front and side locations if meeting local setback limits. However your jurisdiction may restrict or ban the use of certain yard locations, so check planning codes.