Hello Emilia,
Yes it can be executed.
For the PDF, the thumbnails are generated the same way, just by running the filter media process.
It is also possible to upload your own thumbnail for the item if you wish. This can be done by editing the item,select the bitstreams tab and on the section that shows BUNDLE:THUMBNAIL you can upload the tumbnail of your choosing.
Kind regards,