As a complement to Ted's answer, I would add that to confirm parts interchangeability between components, one can sometimes find the information into the exploded view (EV) document.
If we open the FC-R7000 EV, we can see a list of all the crankset's parts as well as two models of crankset that are officially made of compatible parts, the FC-5800 and FC-R8000.
Looking at the 52T chainring, we see a B in the FC-R8000 column, which means: Parts are usable, but differ in materials, appearance, finish, size, etc.
This confirms that you can use it without problems for your FC-R7000 crankset.