It depends upon the type of viruses and malwares .Some viruses are not even detected by antiviruses.
But most of the time an antivirus which is good and gurantees full ptotection blocks /eliminates these trojan horse virus or worms. Make sure that your antivirus is up to date and offer total security protection like Quick Heal.
In todays time there are many ways to bypass antivirus protection, one should take proper measures to keep themselves safe from such viruses.For that you should not visit any malitious website and only use trusted internet connections to use online services.
Thank You