Sure it can: a `requestAnimationFrame` callback can call `cancelAnimationFrame`.