yes!
Nobody really knows why our anatomy placed the heart inside the rib cage, though the rib cage is there to protect the heart.
Twelve pairs of ribs are connected to sternum in front and also connected to thoracic vertebrae posteriorly. Together these ribs make a cage called rib cage and enclose some internal organs.
typically it has 24 human
Because the 24 ribs (12 pairs) have the resemblance of a cage structure; hence, the name "rib cage".