The Legal Positivists claim there is no necessary connection between law and morality, but this is incorrect.
Every law is an expression of morality. For example, even a mundane traffic law requiring a driver to stop when a pedestrian is in a crosswalk reflects the implicit moral principle that the lives of all pedestrians in the crosswalk are equally worthy of protection; one could imagine a Nazi traffic law in which a driver did not have to stop for Jews or a Muslim traffic law in which a driver did not have to stop for unbelievers.