Yes, it is generally safe to keep pet snakes as long as they are properly cared for and housed in a secure enclosure. It is important to research the specific needs of the species you are interested in and ensure that you can provide the necessary environment, diet, and veterinary care for the snake. Additionally, always handle snakes carefully and be aware of any potential risks associated with certain species.