Does cloning work in Pokemon LeafGreen version?

how does cloning work