Prevent a specific app from accessing the Internet I use Microsoft OneNote on my Mac.

How can I can turn off the Internet access to Microsoft OneNote on my Mac?
What you're looking for is called an application firewall. One free/open source program that does this job is called LuLu --  https://objective-see.com/products/lulu.html -- with code on github here.