Yes, tasks can be canceled using features like cancel() in ThreadPoolExecutor or coroutine's Job.cancel() to avoid unnecessary work.