Can I work out with a healing fractured rib?

Depends. Depends what kind of fracture you have and how long you have been injured. Posterior fractures may have a greater risk of puncturing a lung. Check with your doc!
Yes. Yes you can, but i'd avoid any really strenuous exercise for about a month after the fracture. Also i'd avoid any contact sports for 4-6 weeks.