It’s usually OK to move the car a short distance on the flat tire to get the car to a safe place. But anything more than 100 yards will almost certainly damage the rim. The tire could come off the rim and damage your car’s bodywork as you drive on that flat tire ruining the rim.