Yes, you can train your hamster to poop in the litter box. The training should start from the early stages of your hamster’s life. The duration of this training depends upon the breed and personality of your hamster.