Yes, you can exclude media from being tracked by specifying a data-matomo-ignore attribute. Read more about this in the guide for restricting tracked media data.

Previous FAQ: Tracking videos & audio