You can certainly use an iPhone 3GS today as long as the batteries still work, but don’t expect any updates on it anytime soon or to be able to functionally use the more modern apps from the Apple store.