It can, in two ways. A bright TV in a dark bedroom floods your eyes with alerting, blue-rich light right when your body is trying to wind down, which delays sleep. And having it there makes late-night watching easy, pushing your bedtime later. Even as background, the light and stimulation can fragment your sleep.
If you keep a bedroom TV, soften the impact: use its warm/night picture mode, turn the brightness down, keep a soft lamp on rather than watching in the dark, set a cutoff before bed, and consider amber glasses for late viewing. A dark, screen-free bedroom is ideal for sleep, but these tweaks help a lot.