You can have joint legal custody with sole physical custody or joint physical custody, which determine who your child lives with. Joint legal custody is a way to give both parents a say in their child's upbringing. It is meant for cases in which both parents are able and available to make important decisions. In many states, it is the default option or is at least preferred over sole legal custody. In these states, sole legal custody is awarded when joint legal custody isn't in the best interest of the child.
Link to definition source