This will work just fine. Just make sure you have the correct cables and ports.
VGA- Unstable Connection, FULL HD, Does not carry sound
DVI- Stable Connection, FULL HD, Does not carry sound
HDMI- Very stable connection, FULL HD+, Carries Sound
Display port/ Mini Display port- Stable Connection, Full HD+, Carries Sound
Auxiliary- Only carries sound
I recommend HDMI as it is the easiest to set-up and is found on many electronics. Just remember when using any of these cables to make sure your PC has a output (Any Cable) and your TV has a input(Any Cable). Worst case scenario you can buy an adaptor to convert the cables.