Obstructive sleep apnea (OSA) can increase sleepiness, which can impair your ability to safely drive. Here is an article about two studies showing just that. Both studies involve longer distances on a driving simulator. So keep that in mind, as driving for real may be different. People with untreated OSA were more likely to fail the simulator test than those without OSA. Also, those with untreated OSA were more likely to admit to nodding off behind the wheel than those without OSA. Neither study tested the drivers after they received OSA treatment - those studies will be interesting to see.
Whether you have OSA or not, always use precaution when driving. Do not drive if you feel sleepy. If you get sleepy while driving, pull over to a safe area and take a brief nap. Or if you are with someone else, let them drive so you can nap in the car.