Yes, we once used that method of wheel truing on a club ride after one of our members got his wheel caught in a pavement crack and taco'd it.
But that was just to let him continue the ride and get back home.
If you can get a new rim and rebuild the wheel yourself then that's what I'd recommend. Are you really ever going to feel confident riding on the repaired wheel using the original rim?