No, the iPhone 12 Pro doesn't have the same charging port as the iPhone X. The iPhone 12 Pro features the new MagSafe charging technology, which has a magnetic connection that makes it easier to connect chargers and other accessories. The iPhone X, on the other hand, uses the traditional Lightning port. This means that if you want to use the MagSafe charger or accessory, you'll need to buy the accessory for the iPhone 12 Pro.
It has to be the same. That's the good thing about the Apple series.