Longer than what?
Assuming you're using IMAP (most email accounts are nowadays), there is no limit as far as the phone is concerned - the limit (if any) is imposed server-side.
On my phone right now I literally have over 10,000 messages going back at least 5 years (probably more if I cared to look)