Hi Hemant,
You can update in any order.
There have been multiple changes though since 2 years ago. Updating anything, especially WordPress itself, may potentially change some things on your site. However, if this occurs (hopefully not), we’ll be here to help.
What we would highly recommend is to create a backup of the current state of your site before proceeding with updating.
One popular backup plugin is UpdraftPlus: https://wordpress.org/plugins/updraftplus/