No, you are not infected. Avast detected the trojan before it finished downloading. Aborting the connection interrupts the download.