Root or upgrade to 4.4.2 first?
You can do either way. 

The safe method is to update and then root the phone.

But You can also root and then install the ota update. But ota will fail if you have


custom recovery
modified any part of the system like removed bloat, xposed, etc


Still there is  a post in XDA to update ota with custom twrp recovery.