Does Drupal automatically unlink() orphaned files?
The images will be automatically deleted if they were added through a regular image upload field. In that case Drupal understands that that image is related solely to that one node/entity.

In case you are using some other module for inserting the images, it depends and might not be deleted.