Butterfly stretch after hip replacement

Hi, I’m 3 weeks post op bilateral posterior approach. I loved yoga before my surgery. Is it too early to do the butterfly stretch where your heals are together and your hips/legs fall to the side? Don’t want to dislocate my hips but can’t wait to do certain stretches. Anyone have any advice/experience if that stretch is allowed?