Yes, It is possible to get pulled muscle or strain when you suddenly contract your muscle like sneezing, violent
coughing, lifting heavy weight, push-ups, jumping, heavy kick and so. Muscle needs to relax and it takes some time. Complete rest and heat locally is very helpful. To counter pain, you may take a painkiller and a muscle relaxant with food for couple of days. Gentle massage and steam bath will be soothing.