Depending on your settings ofocurse.
But yes Avast is capable on scanning the attachments with its on-access scanner when you access them.