It very well could pass but without knowing the reason for the light being on there is no way to tell if it will pass or not.
If you live in California no it will not pass and you got to fix the problem and performer a drive cycle c whit it consist of driving the car for at list 16milles on the street and the freeway