You can directly upgrade, you need to download a good mirror version package, prepare an http software, if there is snapmirror, you need to stop the relationship, and you need to do a lot of checks to verify that there is no problem with the cluster, below is the official upgrade steps link, I hope to help you:https://docs.netapp.com/zh-cn/ontap/upgrade/concept_upgrade_methods.html