Assuming your inbound flight is on time, you're fine. That said, you might consider buying early check in (or whatever it's called) so that you have a low boarding number of your first leg, sit toward the front of the plane and get off as quickly as possible to head to your connecting flight.