Yes this is possible see the instructions at https://support.atlassian.com/jira-software-cloud/docs/set-up-issue-types-in-next-gen-projects/
A subtask is just another issue type apart from it belonging to a parent issue.
Note the special instructions around NOT creating a subtask called subtask.
Hope this helps
Sorry I should have been clearer in my earlier answer.
There is currently no way to create subtasks whilst continuing in a next-gen project (as of May 2020) but the instructions quoted show how you would convert to a classic project and then how you can set up your subtasks.
...ollected feedback from users around the lack of shortcuts, and we’re here to address that: In next-gen projects, I miss the keyboard shortcuts badly. This is particularly true on the Board, but also i...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events