As my rock farming Yankee Gramps would say,
"Ha'ad tellin', not knowin'."
This question has been previously answered, in the positive, as I recollect.
But I can't say, not knowin' what it's power requirements are to get you thru the night.
If you don't know, there's a relatively inexpensive gizmo called Kil-A-Watt that can tell you fairly precisely what energy the CPAP consumes during a session.
Those who say that it cannot be done should not interrupt the people doing it.