Can you be a teacher with a dui?

I have an associates in math and science and was thinking of options maybe pursuing a bachelors in math and science so I can be a teacher as a plan B. (Im also a nurse).

I was told you just need a bachelors in something to do substitute teaching.

The thing is I have a dui from 7 years ago—can I be a preschool teacher still with a dui in California?