If you were in the same terminal, it would be doable. Technically, you can walk between terminals without having to go outside of security. But it's still a long walk and I wouldn't feel comfortable with less than an hour to do so. My suggestion - since you won't be checking luggage - is to book the later flight.