I think yes, you can, since rubric group can be represented as a grid word environment.

See this [link][1] from GitHub, they attempted solving using dqn




  [1]: https://github.com/sekharcvs/RubiksCube