Getting in state tuition

Hi there
I am planning to attend university in California next year

I am Currently an international student with F1 visa and I am planning to get married to my boyfriend who is a California resident. I will have be a greencard holder by the end of this year.
My question is , will i get in state tuition aften getting permanent residence as my future husband is a California resident?
Thank you