I would say yes.
My first sig was a 9mm p229, non railed. My next was a cpo p228, love it. The 2 pistols are almost identical, I can swap slides, barrel, etc. only difference is the 229's slide is heavier. I like the balance of the 228 better.
I even just bought one of the p228 slide assemblies from apex. I'm not exactly why though.
the frame will wear out before the slide does.
In your case the slides will not be a simple swap, need to replace some parts to Use a 228 slide on a 40 229.