Confused discharge

I have been having sore breasts, cramps, and yellow discharge... I have never had yellow discharge before does this mean I might have an infection?