Yes, this is possible but there can also be some adjustments to consider afterwards as some features available in Squarespace might not be readily available in WordPress if the website is exported from Squarespace as a WordPress website.
Step 1: Log in to your Squarespace account and go to the Settings > Advanced > Import/Export menu.
Step 2: This will bring you to the import/export settings. Next, click on the export button to continue. Next, click on the WordPress logo to continue.
Step 3: Log in to your WordPress admin area and go to the Tools > Import page. You will see a list of platforms to choose from.
WordPress will now fetch and install the importer for you. Once finished, you need to click on the Run importer link to continue.
Final Step: WordPress will now upload and examine your Squarespace export file. If everything is in order, then it will show you the import settings page.