Switching voltage application

Yes, the max voltage would be 5V (variable) and I wouldnt need more than 20mA,

Thanks

Ilan