Could you pull a muscle in your ribcage?

Yes. This is not uncommon to pull the intercostal muscles between the ribs. Healing is like other muscle pulls but due to continual breathing the healing period may be longer due to continuous "tweaking' of the pulled muscle and if you don't breath deeply, pneumonias can theorectically develop.