Home Depot is not noted for the quality of their plants. It is normal for Ponytail Palms to be potted up high, as yours is. If the problem is the angle, then a slight repositioning in the pot may help, but not repotting.
However, if the plant is so wobbly that it is not able to support itself without a stake, then that means the roots are badly deteriorated from either under or over watering prior to your getting it.
If so, then very carefully take it out of its pot doing your best to leave the roots and soil intact. Do this shortly after you have watered it. Check to see if the roots are healthy. If they are dried and shriveled or if they are soft and mushy, then it may be difficult to salvage your plant. You would have to repot it very carefully and try to get it to develop new roots.
If the roots look reasonably healthy, then put it back into the same pot and add a bit of soil to the top surface to help support it. With good care, the roots may develop more fully and provide better support in the future.
If the issue is just the angle of the plant and it is able to stand up without support, then do NOT attempt to repot it. Just reposition it slightly. The less you have to disturb the roots, the better.