It is not recommended to keep a raccoon as a pet.
Raccoons are wild animals with strong instincts for foraging, exploring, and solitude. They can be destructive and unpredictable in a domestic environment and may become aggressive, biting or scratching when stressed or threatened.
They can carry diseases such as rabies, roundworms, and leptospirosis, which can be transmitted to humans. In many areas, keeping raccoons as pets is illegal. Ethically, it is generally wrong to remove wild animals from their natural habitat and confine them in a home.
Instead, consider supporting wildlife rehabilitation centers, observing raccoons in their natural habitat from a distance, and educating yourself about their ecology and behavior.