Yes. You’re right. avast great feature!
Yes and no. Yes, viruses are not ‘loaded’ at that time. No, the efficiency depends on virus database signatures and unpackers (to check files into archive files). avast does not have a heuristic detection.