Yes. I have kept snakes all of my life.
If you want to keep your snake alive, do your homework. Decide what kind of snake you want, buy a good book about the snake, and do even more digging. The mortality rate for snakes is very high due to bad husbandry. Also, snakes can live for about 3–4 decades.
Each snake has different requirements for husbandry. You can’t just toss them in a tank. You have to have a proper enclosure for security, ability to clean, ability to temperature regulate.
Each species, or group of species, requires different environments. Learn what “you need a hot side and a cold side” means. Learn enough to know that heat rocks are not what you should use… ever. Learn what “substrate” means, which type of substrate you should use and why. If you don’t know what I am talking about, don’t get a snake.
Learn about the feeding habits of whatever snake you are considering. For instance Royal Pythons (“Ball Pythons”) are notoriously picky eaters and, if you get one of these beautiful snakes, you might have to do things up to and including breaking the head of your prey item open to stimulate feeding response.
When people ask me what sort of type of snake to get as a first one, I customarily suggest a colubridae such as a king snake or corn snake… after I have given quite the lecture (you are getting the short version). They are less fussy in temperature than the boid and grow nowhere near as long as one. Get a cute little burmese python, and you could have a 200+ pound reptile on your hands if it is female… I had one that size, she was a rescue.
You also are going to get bitten. That is not a matter up to debate. Sooner or later you are going to do something stupid with your snake. My first Stupid Snake Error was to not wash my hands after prekilling my snake’s rat. I reached in and got nailed. I said “well, damn I was an idiot,” washed my hands, and got on with it.
Oh… prekill. Get your snake on prekill.
As a guy who loves snakes, I encourage you to think twice. This is not a pet you can just put in a tank and toss misc. food items at.