Yes.
And, interestingly, if you were to use that same black plastic to make a lens, it would focus the IR the same way glass focuses the optical wavelength.
I used to work for a company that made motion detectors... mounted in front of the IR sensor was a piece of plastic that looked a lot...