What model year is it? The model year of a MacBook Pro is available at Apple menu > About This Mac.
A late 2013 and mid 2014 MacBook Pro can be upgraded to the latest version of Big Sur macOS 11 but no later.
An early 2015 through 2016 MacBook Pro can be upgraded to the latest version of Monterey macOS 12 but no later.
A 2017 MacBook Pro can be upgraded to the current version of Ventura macOS 13.
For all of the above, see instructions in: How to download and install macOS - Apple Support
A 2018 or later MacBook Pro can be upgraded to the current version of Sonoma macOS 14. See: How to upgrade to macOS Sonoma - Apple Support
Also see the following regarding Microsoft Office system requirements: https://support.microsoft.com/en-us/office/upgrade-macos-to-continue-receiving-microsoft-365-and-office-for-mac-updates-16b8414f-08ec-4b24-8c91-10a918f649f8