Yes, Tor Browser disables Third Party Cookies:
The Cross-Origin Identifier Unlinkability design requirement is satisfied through first party isolation of all browser identifier sources. First party isolation means that all identifier sources and browser state are scoped (isolated) using the URL bar domain. This scoping is performed in combination with any additional third party scope. When first party isolation is used with explicit identifier storage that already has a constrained third party scope (such as cookies and DOM storage), this approach is referred to as "double-keying".
It also provides the New Identity feature, which when used will remove all cookies from the session. Cookies also do not persist between sessions, as such you can use this to unlink your browsing.
Also cookies are entirely unrelated to any "virus".
Related questions:
Why does not Tor Browser disable cookies completly?
Can site.com attach (and access) identifying cookies to TorBrowser session if JavaScript disabled?