Yes, that is the preferred method for editing files.