If you are talking about a paid version of avast, then yes the license will be valid on the new system.
Just uninstall it on the old system, install on the new system using the license file that you no doubt saved.