Regardless of the reason an order can be canceled during the following stages:
Once an order status changes to 'Shipped' it can no longer be modified or canceled.