Yes, this is a very important matter for engine builders who are working with different cam timing.
We set the dynamic compression for all of our builds. We calculate it for each build because it is also affected by the atmospheric pressure at your elevation.
So briefly, the later that you close the intake valve, and the higher in elevation above sea level you are, the higher the dome(static compression) you need to run to get your desired cylinder pressure amount. This is because the later the intake valve closes, there is less remaining swept distance left in the compression stroke to make compression. So, you need to squeeze it harder. Similarly, in a high altitude like Denver, the air is thinner than at sea level, so you need to squeeze that harder too.
This can become an issue because the bigger the piston dome is, the heavier the piston is, and it can be a limiting factor in how high the engine can rev before it comes apart in a very exciting way.
I am very well-versed in calculating all this stuff. It's every day fare for me.
Let me know if you need help.