I'm not sure I understand but...
Are you asking whether if you recorded a guitar (or other audio instrument) part into an audio track whether the notes of that part could then be shown in the Piano Roll View/Staff View?
If so... no. Not really. Not reliably. It depends on the material.
What Sonar DOES have though (at least Platinum does) is ARA audio to MIDI conversion using Melodyne.
What that does is analyze an audio signal, sends it to Melodyne to detect the pitches of the notes and can convert it to MIDI notes.
The basic version of Melodyne that comes with Sonar can only work on "Monophonic" parts though (one note at a time). So you could do it on a bass track or a single voice vocal track.
For "polyphonic" (more than one note at a time) audio like a guitar playing chords you need to upgrade the Melodyne plugin to the top version (Melodyne Editor). You get a discount for that if you got Melodyne with Sonar.
BUT this isn't magic. Even the single note MIDI conversion needs to be played SUPER clean and tight for the notes to be detected properly and you'll still have to go through all the notes to correct a lot of stuff. Same goes for the polyphonic version which probably needs more correcting afterward.
So no... you can't just take an audio track and have it immeditaly turn into sheet music... BUT using the audio to ARA MIDI conversion on a cleanly played part and then editing out any errors the conversion added you can then print that out in staff view.
There is no tablature view in Sonar. Only the fretboard view which is essentially useless for printing out because it is a step based view.
Cheers.