My question involves criminal law for the state of: South Carolina

I apologize for my ignorance.
Is a prosecutor a witness against the defendant?
Do I have a right to cross examine the prosecutor?

Thanks!