If you use Windows 11, it will automatically use the printer used most recently. However many users do not like this setup and luckily Windowsreport.com has a article which covers how to setup a default printer.
The default printer is where all printing tasks are automatically sent unless a specific printer is set before print from a particular app. The article discusses setting in the settings app, Printers folder or command line.