During the medical exam needed to obtain or renew your CDL, your doctor may decide that you match the physical conditions leading to sleep apnea.
They may require you to have a sleep apnea test before signing off on your medical clearance. The test will not stop you from driving, even if it shows you have sleep apnea.