There's absolutely nothing wrong with that, and that's what states are for.
According to the writers and signers of the Declaration of Independence, that's what all human government is for, explicitly. And most particularly the government they were setting up. The United States of America.