Czy md5 (file_contents_as_string) będzie równy md5_file (/ path / to / file)?

Jeśli zrobię:

<?php echo md5(file_get_contents("/path/to/file")) ?>

... czy to zawsze będzie generowało taki sam skrót jak:

<?php echo md5_file("/path/to/file") ?>