Sure. Depending on your usage you might have to get a battery case after 2 years, but as far as usability 2 years is nothing for an iPhone, and remember it's a phone not a full fledged computer.
That said, if your current phone isn't totally giving you fits you might want to wait for the 7 this fall. I know it seems like a long way away but it's already mid-April.