Oh yeah, i'm just guessing. They can definitely do all that beforehand and leave the Avernus ending if we 'fail' to fix her heart somehow.
Or if we had an Avernus mission, much like the house of hope. Now this place could have been a perfect set up for a Karlach quest for her heart. But, alas.