I understand you would like the shortcode [woocommerce_checkout] on posts and pages, this is the expected behavior, and you would like to use it on custom post type, can you provide more details about this? That way, we can better understand your goal.
Thanks for your reply. I have now found the filter and able to work it as required.
// modified is_checkout variable according to my requirements