Sure. Generally you’d probably want to go through a DI (direct interject) box to match the impedience, but that isn’t essential. I like playing my electric guitar through at least one effects pedal to give it a more natural sound. It can sound a little dry just plugging directly into the channel because there’s no speaker cabinet sound. Bass is less of a problem.
Mark