YES! If your test shows you have sleep apnea, you will need to use a treatment device called CPAP at night to treat your sleep apnea.
The CPAP records your use, which can be submitted to your DOT physician to show you are compliant with treatment instructions.
As long as you are properly using your CPAP, your DOT doctor can clear you for your medical certificate.