It may or may not be OK.
If the DC power comes from a transformer that isolates it from the AC supply, it is possible that one leg of the transformer secondary is earthed. This is a common way of doing it.
If the DC power is directly rectified from the AC line with no transformer isolation then there is a problem.