Yes, if product is not available for COD payment method then COD payment option will hide on checkout page.