While it may be legal to own a sloth as a pet in some places, it is generally not recommended. Sloths have specific dietary, habitat, and social needs that can be challenging to meet in a home environment. Additionally, they are wild animals that may not thrive in captivity. It is essential to consider the well-being of the animal before deciding to have a sloth as a pet.