Change 3 way switch to 4 way with smart dimmers

Yes but be aware of this, I did not realize that it could be against code.