Now, your computer could, in theory, get infected with a virus while you're watching a video, but the watching of the video would not be what's causing the infection.