Please see your doc.
I rec that you call your doctor to discuss the details.
May be ok, but there are many serious cond to consider. With more info your doc can help you work through the possible causes. Call immediately if you have shortness of breath, are coughing up any blood, or have risk factors for blood clots (smoker, taking bc, hx of clot, fam hx of clots, etc). Also consider pna, ptx, trauma, or card cause.