The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
How to manage Tasks and Sub-tasks in JIRA for Agile ?
Use them as you see fit - whatever works best for your users.
One word of caution though - if you are going to use JIRA Software's Scrum boards, do not estimate on sub-tasks. It does not really work.