Yes, and I’ve written a couple of guides about doing this:
Can I use a different payment processor with Squarespace?
How to add afterpay or Klarna to Squarespace (using Shopify Buy Buttons)
Bear in mind that this can work well for a very small inventory, but if you have a lot of inventory, you’ll soon get tired of using two platforms.
If you don’t need to manage inventory, you may also be interested in the wishlist extension that we sell. This allows customers to submit their cart to you without taking payment.