If you run .40 brass through .357 Sig dies, your brass will come up a bit short. It's possible to do, but it means less case mouth tension, and you'll need to adjust your dies to headspace the cases off the shoulder as the mouth won't be long enough.
There is also a 9/40 chambering, similar in dimentions but meant for the .40 case.