That's the essence of it. Detect potentially malicious files as they are accessed or written, remove, delete or quarantine them (in avast's case, the "chest thing") just in case they aren't malicious after all. It's also good if the program updates itself automatically and makes little impact on your PCs speed.