You will need to get a fitness to fly certificate from the doctor, or the airline might turn you away.
For someone who's had a heart attack, the regulations are 14 days post before they can fly. For a broken leg, it's about 4 days (with split cast). Personally, I would be reluctant to fly so soon after such a major op, but best thing is to talk to your consultant.