Apologies if this is a silly question, but can you use an emulator, have the SD in a dock and use a controller to game on my big TV in my living room?

So essentially new Mario, Zelda, etc. but using my preferred controller and my big living TV.