Yes, you can create a legendary dragon. You can do this while unlocking it from the shop or through the breeding process. While doing business with the shop will require you to invest in many gems. However, you need to select two strong dragons of changed classes and breed them with the breeding process. But you may have to wait for some days to reach the final process of the legendary dragon egg.