Yes, you can use same license key (purchase code) for unlimited number of subdomains. However, you need to remember to register license for the main domain first and later for its sub-domains. If you missed this step, please de-register license and later register again.
For more details about managing licenses, please visit https://support.muffingroup.com/faq/how-do-i-register-de-register-license-key/