Driving on a flat tire, even for a short distance, can further damage the tire and possibly the rim. If you can turn on your hazard lights and drive slowly to a safer location, that may be your best option, but you should try to limit the distance you travel.