Custom message for Pick up locations based on Product Inventory

IS there a way to display custom message on checkout page for Pickup locations. The message will be displayed based on product inventory. We have inventory policy set to ‘Continue selling when out of stock’ and want to display message such as ‘Ready for pickup in 1+ day’ if in stock at selected location, or ‘Ready for pickup in 1 week’ if it’s available in nearby location etc. Can we do that with coding/or any app?