Can animation nodes be used for animating a rubik's cube?
It needs some work but possible. You can try using Child of constraints, to dynamically parent the cubes to empties as time going. Here is an example setup:



Also, you can try using particles to generate location set. Like this:



Both solutions are a bit tricky, and not perfect, still figuring out how to fix that, but that's how it goes for now.