I have not tested, but this reply to a similar post from 2017 offers an answer:
https://community.shopify.com/c/Shopify-APIs-SDKs/Using-buy-button-checkout-to-redirect-not-pop-up/m-p/352937/highlight/true#M18441
Hope that helps