Is your question - is it something that a wheel builder can do? Or is your question is - is it something that you can do?
I have put new rims on wheels a couple of times, but I know how to build wheels. And if the new rim is the same brand and model (or same ERD and spoke pattern), I have also re-used the same spokes.
A couple years ago I bought a used dynohub wheel at a great price, but I wanted a wider rim on that wheel. I found another rim with nearly identical ERD and spoke pattern, I taped the new rim to the old rim, and moved the spokes over, one at a time and re-trued it up.
In your case, if the wheel is bent, maybe the spokes should not be saved? I have only re-used the spokes if I had no reason to question the existing spokes.