For steel rims this repair is OK.

For aluminum rims, its risky. first off you're lucky you didn't completely crack off that area while hammering it back. But since you did get it to seal enough to get out, that's good, but the wheel needs to be replaced. That stress crack was caused by hammering it back, not the tire machine.