Yes CT scan is done to detect the cancer. Before CT scan its better to have X-ray. If x-ray is clear, then avoid CT scan test. No wonder many naturopaths are warning people all over the world to avoid this test because of its harmful side effects. PET scan is another test used to diagnose lung cancer.