Could it be that after pulling a muscle the swollen muscle is pinching a nerve?

Yes. Injury to any soft tissue including muscle can lead to pressure on surrounding nerves.
Irritate it for sure. After you pull a muscle, there is bleeding around the area and subsequently inflammation. Both of these things can irritate or at times put pressure on a nerve.