That's technically feasible, as is the ability to add a second Ethernet port via an I/O connection, as is the ability to use a Mac mini as an expensive and somewhat awkward IP network router, but it's vastly more common to install an inexpensive gigabit Ethernet network switch, and connect your Mac mini and other equipment to that.
I'd use the switch.
Your router already almost certainly provides firewall and NAT services. Probably also DHCP. Use that router. Or if your router is configured as a "bridge", get an actual firewall, and connect and use that for firewall, NAT, and related services.
I'd not use my Mac as a network firewall. Far too easy to make mistakes on the untrusted network, and accidentally open up a path to exploit. Some app or some package might open that without overt notice, too. And some denizens of the internet are continuously looking for configuration mistakes.
Router/firewall/NAT/gateway box connects to the Ethernet switch, the switch connects to the Mac mini and whatever else is in use on your local network, etc.