Yes, it is generally safe to keep pet snakes as long as you are knowledgeable about their care requirements, handle them properly, and ensure they are in appropriate enclosures to prevent escapes. It is important to research the specific species of snake you are considering keeping as pets to understand their needs and behaviors. Additionally, always wash your hands after handling a snake to avoid the risk of salmonella infection.