Hello Nikhil K.,
Yes, you can upgrade your Windows Server 2012 R2 Standard to Windows Server 2019 after October 10, 2023.
However, please note that after this date, Microsoft will no longer provide security updates or support for Windows Server 2012 R2.
Best Regards,
Hania Lian