If this is on United (so, guaranteed to be in the same terminal), I don't see why not, although this leaves no room for error or delays. If the flight is on time, sure.
I'd probably do it myself, but I am one of those who lives on the edge in this regard.