Question about Layer7 and virus filtering

Hello, I’ve a quick question about using Layer7 to help thwart viruses and keep infected traffic leaving my network to a bare minimum. I don’t like the idea of just blocking ports that viruses have been known to use, someone suggested i look at packet shaping/DPI.

Is this something that can be done w/ a MikroTik board and/or RouterOS?