Absolutely not! Pull the carpet back and install the bottom plate firmly to the floor. Then you can trim the carpeting to fit the new config. To do otherwise is totally against code. If your carpenter is suggesting this, let him go and hire another who knows what he's doing!