Raising Domain Functional Level
Yes you can without issue.
Raising those level will give you more options, please refer to that documentation
To quote the article;
Windows Server 2012R2
Supported Domain Controller Operating System:
Windows Server 2019 Windows Server 2016 Windows Server 2012 R2