I'm sure this is going to turn into a semantics battle with the layers blurring, but traditionally all routing happens at the IP address level.
But yes, you mean OSPF et. al. Yes, you can certainly run those on a wifi router (they don't from the factory, so reflash with dd-wrt or whatever). Machines much less powerful were doing dynamic routing using these protocols 20 years ago.