If it's an identical rim, then yes as LWaB says, it's relatively easy.
Just loosen up the spokes on the old rim, drop the new on top, and transfer the spokes across.
If you really want to, you can obviously replace the spokes as well, but generally they're likely to be OK (unless you had a bad bash to the previous rim which meant that the spoke tension was unusually asymmetric).