Yes, and the effect is larger than most players expect. Driving games lean heavily on reaction time and fine steering corrections, and both degrade the moment your attention is split between the screen and something else in the room.
The practical consequences show up in predictable places: missed braking points, late apexes, and a lap time that quietly slips by a second or two. Split attention also makes you worse at reading traffic, which in open-world racers turns into property damage and lost combo multipliers.
If you are chasing a clean run, treat it like a real attempt. Close the extra window, turn the volume to a level where you can hear engine cues, and give the game your full attention for the length of a race.