In general, that should be fine. My understanding is that the minimum connecting time at O'Hare is 40 minutes, which generally means that the airlines expect to need 40 minutes to allow you enough time to get between flights as well as get your baggage to your next flight.