Without a lot more information about exactly what computer equipment (including any audio interface) you have it really is very difficult to answer your question, sorry.
@Byfield-Richard Yes, you need at least some kind of audio interface to plug an electric guitar into or a microphone/piezo pickup for an acoustic guitar.