Keeping a pet snake can be safe as long as you educate yourself on the specific needs of the snake species you plan to keep, provide a proper habitat, handle them correctly, and ensure they are not a danger to yourself or others. It's important to research and understand the type of snake you want to keep to provide a suitable environment and care.