Yes, the iPhone 12 supports 5G frequencies that are deployed in most parts of the world.
Some people are concerned about low-band and mmWave support, but in reality, those frequencies are not being deployed in any meaningful way by carriers in most countries. The meat of 5G is in the Sub-6 frequencies and particularly mid-band (1GHz - 6GHz).