if it is possible to migrate with the configuration we have from 2003 to 2016 for example.
Assuming you're asking about a domain controller?
The prerequisite before introducing the first 2016 domain controller: domain functional level needs to be 2003 or higher
I'd use dcdiag / repadmin tools to verify health correcting all errors found before starting any operations. Then stand up the new 2016, patch it fully, license it, join existing domain, add active directory domain services, promote it also making it a GC (recommended), transfer FSMO roles over (optional), transfer pdc emulator role (optional), use dcdiag / repadmin tools to again verify health, when all is good you can decommission / demote old one.
Also at some point after I'd recommend migrating sysvol replication from older FRS technology to DFSR
https://techcommunity.microsoft.com/t5/Storage-at-Microsoft/Streamlined-Migration-of-FRS-to-DFSR-SYSVOL/ba-p/425405
--please don't forget to Accept as answer if the reply is helpful--