If i save a image path in a database and retrieve the path for the file via php the image would be saved on the servers hdd??

Is this the case? Is this how all websites work usually

any assistance in understanding this scenario better would be really great!!