The diaphram is supplied by the C3-5 nerve roots on each side. The side of paralysis should be the side of the nerve injury. There are syndromes (Parsonage Turner Syndrome-see website) that can cause nerve injury without nerve compression.
Coughing and vomiting without an associated nerve compression will not cause nerve pinching. It is rare but you can rupture a diaphram by those actions.