yes if you truly had strep throat and you were taking the proper dosage for your weight and for the proper length of time. most sore throats are not strep so if you are self-diagnosing and self-treating i would caution you against doing this.
would cephalexin help strap throat