It's safe. Xmp/Docp is just a mode which reads the memory's embedded profile, like a preset, and adjusts motherboard's ram settings accordingly to the memory's specification. Not only does Xmp/Docp allow you to set the maximum speed the modules are capable of but it also sets primary/secondary timings and voltage as well for stability.
Run Cpuz and look under SPD tab to check your ram's Xmp profile speeds. Memory tab will say the frequency they are currently running at. This reading is in single data rate so it'll be halved, times it by two for double data rate.
Docp is a terminology used by Asus on their boards, it is Xmp under a different name. Unlike other motherboard manufacturer's, Asus doesn't pay Intel royalties for the naming scheme. So for Gigabyte, Asrock and others, it'll be Xmp and not Docp.
Ram profiles consists of Jedec and Xmp. Jedec is the standard plug and play speeds. By default and convenience, ram should work straight off without Bios interaction, albeit at lower speeds. Xmp isn't plug and play and requires the user to set the profile in the Bios as you have done to reach maximum safe rated speeds. This will change with DDR5 spec when memory have onboard power regulator module to allow fastest speeds immediately.
Xmp doesn't always assume you'll get the fastest speeds though, lucky for you, you could. Other things to factor in is the motherboard, processor's memory controller and the ram modules themselves.
Motherboard needs to be able to support the desired ram speeds and the cpu's memory controller comes into play if the motherboard can't. Mostly with Intel boards, there are different chipset within the same generation, ie H410, B460, H470 and Z490. Only Z (flagship) chipset allows for upping ram speeds over the cpu's memory controller. The rest will limit speeds to what the cpu is rated for regardless if the motherboard supports Xmp. Amd do it differently and for the most part can achieve maximum rated ram speeds regardless of chipset. Though Amd can be a bit more fussy about the IC chips used on ram, ie Hynix vs Samsung. Depending on the Die's used results can vary.
Motherboard and processor website have the information one would cross reference to determine memory speed potential.