You can also record your instrument playing using a microphone. There are some microphones which are specifically setup for vocals and these don’t work as well as instrument specific mikes. Many people report great success, however, with the little lapel mikes that are made to clip onto a shirt collar for a speaker. These can be clipped directly into the sound hole on the instrument to pickup up the music.
Depending on your audio cables, you may need an adaptor to convert the plug from your pickup into the 1/8” (eighth inch) plug needed to into your computer.
Cables differ so take your pickup cable with you to the store to be sure to get the correct adaptor.