Hello
@tech.py.303 - welcome to Computer Forums.
This should be possible to achieve - the way I would go about it would be to add a second network card (perhaps one with several Ethernet ports) and install a dedicated router / firewall OS. One that's well regarded is OPNsense (
OPNsense® a true open source security platform and more - OPNsense® is a true open source firewall and more)
The only thing I would say is it's going to be fairly involved technically to achieve this - so its worth thinking about what you're trying to achieve.
To see if it's possible? Yes, absolutely and you can learn a lot from a project like this. It's worth considering that a misconfigured opnsense install could be worse for security than using your bog standard router.
If you're simply after more internet security in general it might be worth thinking about changing your router for a modern/up to date 3rd party one. With that said, most even basic routers provided by ISPs from the past 10 years or so should be
secure enough for domestic home use. But if you're a business, or potentially a sensitive target then Opnsense might be a good fit or similar software, or alternatively a hardware firewall.