No, a CPAP machine cannot be counted as a carry-on. Because of its status as a medical device, domestic flights (in the U.S.) are not legally allowed to count your CPAP machine against your carry-on bag total, and you're encouraged to board with your device rather than check it in with your luggage.