Had CT scan of abdomen and spine for rib pain, did this check lungs too?

Lungs. Ct abdomen will include the lower lungs and a ct thoracic spine (depending on the technique used) may include a portion of or the entire lungs fields. Check with your doctor.
It should have. To evaluate rib pain, the scan would have to include the ribs. That typically is a ct scan from the top of the chest through the ribs. The scan usually goes down to the level of the kidneys. The lungs are includes in such a scan.

Related Questions

Had CT scan of abdomen and spine for rib pain, does this check lungs?

No. Ct scan of the abdomen only images the lower part of the chest, not the entire chest/lungs. Read more...
No. It shows a small amount of the lower part of the lungs, but not the top 4/5 ths. Read more...