It will probably be fine, but if you want to make the effort, putting the front on the back is better.
If you have the luxury of a place to park it, you can get the tire replaced on the rim and reinstall it without moving the car.
If it did not ruin the tire...did you try removing the offending nail, and use a plug? A plug should work, and you could go to the nearest gas station for some air. You could even do it on the car, if you have an emergency punp.