Hello,
Yes, you should set it up in SonarCloud, to your organization rule configuration - https://sonarcloud.io/organizations/<YOUR_ORGANIZATION>/rules. Search for Track lack of copyright and license headers or the rule ID S1451 and filter by the language.
Scroll down below the rule description and click change:
You can then set the header and change the severity of the rule.

