per onepocket.org rules
it is a separate foul and nothing to do with cue ball only or all ball fouls
6.5 Ball off the table: Driving either the cue ball or an object ball off the table is a foul, whenever either comes to rest off the playing surface, or comes in contact with anything other than...