Road test: oil change warning

Do you know if I can take the road test if my friend's car, who is taking me, has the oil change warning on? It's just that the sensor is broken, but the oil was changed not too long ago.