In most cases, playing pre-hacked or pirated games is not legal, and it can carry serious consequences.
That said, there are some games that have been officially approved and are legally distributed in modified or "pre-hacked" forms—those are fine to play. The key is whether the version is authorized by the creators or rights holders.
When in doubt, stick to official releases to stay on the safe side.