It depends on your situation, and what type of environments you’ll encounter as a hiker. If you’re an avid hiker, but you really only see yourself going out every few weekends, having a water bottle with an included filtration system might be nice, but it’s usually not necessary. If however, you find yourself going on longer hikes into more challenging areas on a regular basis, than something like the Lifestraw Go or the Woder SUR-24 might be a great choice to use.
The bottom line to consider is whether or not you think you’ll be able to get back to your camp in time to refill your water before it runs out. If you’re following established trails, especially ones that loopback, that shouldn’t be a problem. However, if you consider yourself more of an explorer, then having a water bottle with a filtration system is a good idea, just in case.