not in poolrooms of the past. if cue ball went in or off as well it was a foul. but if you knocked just an object ball off the table it got spotted.nope, perfectly not legal. that's why you have to spot/owe a ball after doing so
either then if your inning was over or after if it wasn't and you made another ball on that shot.
it was perfectly legal to shoot and knock any balls or ball off the table if needed. often shot the ball in his hole and sent the cue ball flying, so both got spotted.
standard shot when both need one and he had it in front of his hole.