Are media files duplicated for all sites?

What happens if site A uploads image Z to shared media library, site B uses image Z in post_content, then site A deletes image Z from shared library?