If you have the vendor’s approval then you can cancel a purchase order legally. If the vendor has already started on the products or services, they may disapprove of it.