could the Civil War had been avoided if slavery were not permitted in the U.S. Constitution (per the 3/5 Compromise)?

Yes. But if the Constitution had forbidden slavery, then the Southern states wouldn't have signed it.