I think it is more complicated than that, although I agree in some circumstances laws deter bad behavior. However many laws are passed to protect the bad behavior of the powerful. Moreover, under better environments people may organize themselves effectively with only cultural norms - not laws. Think happy families living together without any laws governing their behavior or tribes with cultural norms protecting a common grazing area.