Question on controllers

Say your playing local multiplayer Mario Kart World would Switch 1 joy cons work as controllers on the switch 2?