Yes, actually I did it for one and the same device. To access CLI on a switch via TACACS+ authentication and to implement dot1x authentication at the ports of the same switch via RADIUS.
This is possible by configuring two different network devices for the single switch.