Yeast Infection

Can a yeast infection go away by itself? If so, how long will it take?