Yes, you can if your shotgun microphone has an XLR or USB output. Professional shotgun microphones like the Rode NTG3 and Sennheiser MKH 416 have XLR outputs that can be connected to an audio interface through an XLR cable before connecting the audio interface to a PC through USB. That said, knowing how to record audio from a microphone to a computer is important for setting up a home studio. Some shotgun microphones like the Rode Videomic NTG and Deity D4 have USB-C outputs where you can connect directly to a PC through USB. However, some shotgun microphones like the Sennheiser MKE 400, MKE 440, and Deity D4 Mini are on-camera external mics with only a 3.5mm output jack that cannot be connected to a PC. Check out our article to learn more about what an audio interface is.