Yes, please refer to https://support.office.com/en-us/article/share-onedrive-files-and-folders-9fcc2f7d-de0c-4cec-93b0-a82024800c07#OS_Type=OneDrive_-_Business for the procedure.
For protected files (using IRM), online editing of the shared files are not supported.