Yes, upgrading your OS will often break QuickBooks and other applications.
First thing I'd try is to Repair QuickBooks from the Windows add/remove programs control panel, and then restart your computer.
That noted, QuickBooks 2018 wasn't designed for Windows 11, so I'm not sure it's even supposed to work.
Intuit says only QuickBooks 2022 is officially supported using Windows 11. See
https://quickbooks.intuit.com/learn-support/en-us/help-article/install-products/quickbooks-desktop-m...