Yeah, if it describes an invention specifically enough - i.e., if it mirrors, with its described elements, a later claimed invention.
But how often does that happen with SciFi? Describing a laser, or a facial recognition system, or a rocket - even if the description demonstrates all the needed elements for how that device might work - isn't the same as describing the elements of a later claimed invention, even one which might fairly be referred to as a laser, or a facial recognition system, or a rocket.
There can be hundreds of different, legitimate, inventions which might all be generally described as a laser, or as a facial recognition system, or as a rocket. They might do different (useful) things and do them in different (useful) ways. A movie demonstrating a facial recognition system - again, even if it did demonstrate everything needed to actually make it work - wouldn't and shouldn't invalidate a later claimed invention unless that later claimed invention worked essentially the same way. It isn't facial recognition that's patented. It's doing A, B, C, D, E, F, G, H, I, J, K, and L in combination that's patented. Doing A, B, D, E, F, G, H, I, J, K, and L wouldn't infringe that patent and, as prior art, wouldn't necessarily require the rejection of that patent.