If you set everything just right it may work.
As jdawg mentioned, Mircoshift, and also Shimano both make ones that will certainly work. I have experience with the Shimano bar end shifters. They work either as friction or indexed with the turn of a d-ring.
__________________
In search of what to search for.