Yes, it is safe to keep pet snakes as long as you research and understand the specific needs and requirements of the species you are considering keeping as a pet. It's important to provide them with a suitable enclosure, appropriate temperature and humidity levels, and a proper diet. Additionally, always handle them carefully and wash your hands after touching them to prevent the spread of any potential diseases.