Hi.
Yes, You can.
Will it work well, probably not with any significant volume.
For noodling around and/or practising it can work.
Watch out for the
low end, a KBD signal goes lower and the fundamental frequency is more prominent than in an average stringed instrument. Use Your ears and your cab will survive.
If You have a synth, be extra careful with those meaty low rumbles

.
Regards
Sam