Yes! Many turntables available today have USB output, which can be connected directly to a Raspberry Pi tucked behind it. If you have a turntable with analogue outputs, you’ll need a USB pre-amp like the Behringer UFO202 used here. Better, more Hi-Fi oriented USB preamps are also available.
