After a fender bender I got a bruise on my ribs. Could I have damaged my heart too?

Unlikely. Cardiac contusions are very rare, and when they do occur, they occur due to sternal fractures, not rib fractures (for the most part). Your heart should be fine.
No. Highly unlikely with a bruise.