No, that doesn't work. The onscreen keyboard allows you to audition sounds from the synth, but it cannot record.
The Piano Roll View or Staff View are your best options for using a mouse to enter notes.
My personal favorite is the PRV(Piano Roll View). It offers the greatest flexibility and control.
Take some time and get familiar with it. Once you get used to it, it's actually pretty easy to work with.