When you install Microsoft 365 for Mac, the app icons aren’t automatically added to the dock. To add to the dock, drag the app icon from the Launchpad or the Applications folder. The following steps demonstrates how to drag the icons from the Applications folder.
Go to Finder > Applications and open the Office app you want.
In the Dock, Control+click or right-click the app icon and choose Options > Keep in Dock.