Better not just like that. Even if there would be no damage (of which I'm not sure) you'd have a hard time getting an acceptable sound, since with a normal synth's line level you will be overloading the inputs for sure.
It is possible though to use the mic inputs, but with a DI-box inbetween. That's exactly the device designed for this.