Yes, especially as you can do things like
nix run github:user/repo/commit
There is no need to keep anything around, or roll your own nix equivalent, you can just look up the output by commit.