I am not sure what you mean by that. Changing target location for storing media files doesn't have any influence on final url (except for different path of course). You always have both two options to access the file (direct path / permanent url).
It depends on the form control you use for selecting media files. For example, when I tested the Media selection form control, it correctly followed settings (it stored permanent urls according to my configuration).