Yes, it does. If you set $icon to false it will return the thumbnail that was generated when the pdf was uploaded. For any file type that does not have thumbnails you need to set $icon to true and then you’ll get whatever icon WP thinks is best… this is hit or miss. The WP icons are not very good.