Concerned ?

The doctor told me I had a yeast infection but just gave me cortisone cream . Is this gonna clear it up ? Or no