Birthing classes

I’m 17 weeks I’m wondering when is it the best time to take a birthing class?