It is generally not safe to keep a pet fox. Foxes are wild animals and have natural instincts that can be difficult to manage in a domestic setting. Additionally, foxes may carry diseases that can be transmitted to humans. It is important to consider the welfare and safety of the animal as well as the potential risks to humans before attempting to keep a fox as a pet.