***
Welcome to the forums, rocknman.
To add to what Tech says:
You can do that and continue to have to acknowledge the alerts. But, if you unblock the ports, Avast will not give the alerts and scan those ports for you ... scanning anything trying to go in or out of those ports.
Please come back often, learn more, and maybe help others.

***