I am using the SharePoint Designer 2013. I need to create sub-folders when a folder is created in the Site contents library. Is there a way to set this up without programming using the SPD?
From your description, you want to create sub folders automatically in SharePoint online with SharePoint designer workflow.
Refer to the following article about creating folders and sub folders using SharePoint 2010 platform workflow step by step: