We often pretend they are different, or draw a distinction between behaviour constrained by laws and that constrained by personal morals, however the question of what laws to create and how they should be formulated are moral questions.
Although actually neither the right or left hand side rules are arbitrary. They were each intended to better serve a moral objective.
https://www.historic-uk.com/CultureUK/Why-do-the-British-dri...
I'm not sure we need to reduce all norms to 'morality'. But if we think of morality in a really broad way, like 'humans (or other sapient creatures) seeking to satisfy preferences or impose additional structure on nature or society for their own purposes in a universalizable/principled (i.e., fair) way', then definitely: laws should always be motivated in some way by morality.
That's different from the claim (which I'm not saying you've made) that this relationship means that laws should always simply 'encode' moral norms in some direct sense, which imo is a common (and mistaken) simplification.
But yeah I think we're on the same page.
Laws should not impose morality.